Skip to content

Commit af5c9f4

Browse files
author
codefresh
committed
update goreleaser to support release build
1 parent b3424b5 commit af5c9f4

File tree

1 file changed

+31
-15
lines changed

1 file changed

+31
-15
lines changed

.goreleaser.yml

Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,39 @@
1+
builds:
12
- env:
2-
- CGO_ENABLED=0
3+
- CGO_ENABLED=0
34
goos:
4-
- darwin
5-
- linux
65
- windows
6+
- linux
7+
- darwin
8+
goarch:
9+
- amd64
10+
- '386'
11+
- arm
12+
- arm64
13+
ignore:
14+
- goos: darwin
15+
goarch: '386'
16+
binary: '{{ .ProjectName }}_v{{ .Version }}'
717
archives:
8-
- replacements:
9-
darwin: Darwin
10-
linux: Linux
11-
windows: Windows
12-
386: i386
13-
amd64: x86_64
14-
format_overrides:
15-
- goos: windows
16-
format: zip
18+
- format: zip
19+
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
1720
checksum:
18-
name_template: 'checksums.txt'
19-
snapshot:
20-
name_template: "{{ .Tag }}-next"
21+
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
22+
algorithm: sha256
23+
signs:
24+
- artifacts: checksum
25+
args:
26+
# if you are using this in a GitHub action or some other automated pipeline, you
27+
# need to pass the batch flag to indicate its not interactive.
28+
- "--batch"
29+
- "--local-user"
30+
- "${GPG_FINGERPRINT}"
31+
- "--output"
32+
- "${signature}"
33+
- "--detach-sign"
34+
- "${artifact}"
35+
release:
36+
# draft: true
2137
changelog:
2238
sort: asc
2339
filters:

0 commit comments

Comments
 (0)