Skip to content

Commit cd42b80

Browse files
authored
Merge pull request #11 from RoseSecurity/add-binaries-to-builds
fix: refactor goreleaser deprecations, support binary builds, and support freebsd
2 parents be44eda + c96c9ea commit cd42b80

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.goreleaser.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ before:
88
builds:
99
- env:
1010
- CGO_ENABLED=0
11-
mod_timestamp: '{{ .CommitTimestamp }}'
12-
binary: terrafetch
1311
goos:
1412
- linux
1513
- freebsd
@@ -33,19 +31,23 @@ nfpms:
3331
license: Apache 2.0
3432

3533
archives:
36-
- format: tar.gz
34+
- id: tar
35+
formats:
36+
- tar.gz
3737
name_template: >-
3838
{{ .ProjectName }}_
3939
{{- title .Os }}_
4040
{{- if eq .Arch "amd64" }}x86_64
4141
{{- else if eq .Arch "386" }}i386
4242
{{- else }}{{ .Arch }}{{ end }}
4343
{{- if .Arm }}v{{ .Arm }}{{ end }}
44-
- format: binary
44+
- id: binary
45+
formats:
46+
- binary
4547
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
4648
format_overrides:
4749
- goos: windows
48-
format: zip
50+
formats: [zip]
4951

5052
changelog:
5153
sort: asc

0 commit comments

Comments
 (0)