-
Notifications
You must be signed in to change notification settings - Fork 4
/
.goreleaser.yml
51 lines (46 loc) · 1.09 KB
/
.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
40
41
42
43
44
45
46
47
48
49
50
51
changelog:
use: github-native
sort: asc
builds:
- env:
- CGO_ENABLED=0
- GO111MODULE=on
goos:
- linux
goarch:
- amd64
flags:
- -buildmode=pie
- -buildvcs=true
- -trimpath
mod_timestamp: '{{ .CommitTimestamp }}'
ldflags:
- '-s -w -X main.version={{ if eq .Tag "v0.0.0" }}devel{{ else }}{{ .Tag }}{{ end }}'
main: ./cmd/whalewall
archives:
- id: binary-archive
name_template: "{{ .ProjectName }}"
format: binary
- id: tar-archive
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
format: tar.gz
# hack to only add binary to archive
files:
- none*
checksum:
name_template: "checksums.txt"
ids:
- binary-archive
- tar-archive
signs:
- id: checksum-signature
cmd: cosign
certificate: "${artifact}.crt"
args: ["sign-blob", "--output-signature", "${signature}", "--output-certificate", "${certificate}", "${artifact}", "--yes"]
artifacts: checksum
release:
ids:
- checksum-signature
- tar-archive
prerelease: auto
name_template: "{{ .Tag }}"