Skip to content

Commit be44eda

Browse files
authored
Merge pull request #10 from RoseSecurity/add-binaries-to-builds
feat: add binaries to releases and support freebsd builds
2 parents 4988294 + 6252057 commit be44eda

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.goreleaser.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Make sure to check the documentation at https://goreleaser.com
2-
32
version: 2
43

54
before:
@@ -9,8 +8,11 @@ before:
98
builds:
109
- env:
1110
- CGO_ENABLED=0
11+
mod_timestamp: '{{ .CommitTimestamp }}'
12+
binary: terrafetch
1213
goos:
1314
- linux
15+
- freebsd
1416
- windows
1517
- darwin
1618

@@ -39,6 +41,8 @@ archives:
3941
{{- else if eq .Arch "386" }}i386
4042
{{- else }}{{ .Arch }}{{ end }}
4143
{{- if .Arm }}v{{ .Arm }}{{ end }}
44+
- format: binary
45+
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
4246
format_overrides:
4347
- goos: windows
4448
format: zip

0 commit comments

Comments
 (0)