forked from weaveworks/pctl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
39 lines (36 loc) · 853 Bytes
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
release:
prerelease: auto # this should detect a release candidate and mark it as pre-release in GitHub
builds:
- id: default
main: ./cmd/pctl
binary: pctl
flags:
- -tags
- netgo release
- -trimpath
env:
- CGO_ENABLED=0
ldflags:
# gitTag set from a generated file (see ./tag_release.sh)
- -s -w -X github.com/weaveworks/pctl/pkg/version.BuildDate={{.Date}} -X github.com/weaveworks/pctl/pkg/version.GitCommit={{.ShortCommit}}
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
- arm
goarm:
- 6
- 7
archives:
- id: default
builds:
- default
name_template: "pctl_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
format: tar.gz
files:
- none*
checksum:
name_template: "pctl_checksums.txt"