Skip to content

Commit bc7d8aa

Browse files
Merge pull request #62 from NETWAYS/chore/gorelease
Update .goreleaser.yml to be similar to our other repos
2 parents 9cb72c5 + e2bd578 commit bc7d8aa

File tree

1 file changed

+29
-16
lines changed

1 file changed

+29
-16
lines changed

.goreleaser.yml

+29-16
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,40 @@ version: 2
33
before:
44
hooks:
55
- go mod download
6-
6+
builds:
7+
- env:
8+
- CGO_ENABLED=0
9+
goarch:
10+
- 386
11+
- amd64
12+
- arm
13+
- arm64
14+
- riscv64
15+
goos:
16+
- linux
17+
ldflags:
18+
- >-
19+
-s -w
20+
-X github.com/NETWAYS/check_system_basics/cmd.version={{.Version}}
721
release:
8-
github:
922
draft: true
23+
github:
24+
owner: NETWAYS
25+
name: check_system_basics
26+
archives:
27+
- formats: [ binary ]
28+
name_template: >-
29+
{{ .ProjectName }}_{{ .Tag }}_
30+
{{- if eq .Os "linux" }}Linux{{ end }}
31+
{{- if eq .Arch "amd64" }}_x86_64{{ end }}
32+
{{- if eq .Arch "arm64" }}_arm64{{ end }}
33+
checksum:
34+
name_template: 'checksums.txt'
35+
snapshot:
36+
version_template: '{{ .Tag }}-SNAPSHOT-{{.ShortCommit}}'
1037
changelog:
1138
sort: asc
1239
filters:
1340
exclude:
1441
- '^docs:'
1542
- '^test:'
16-
17-
builds:
18-
- env:
19-
- CGO_ENABLED=0
20-
goos:
21-
- linux
22-
goarch:
23-
- arm
24-
- arm64
25-
- amd64
26-
- 386
27-
- riscv64
28-
ldflags:
29-
- -X github.com/NETWAYS/check_system_basics/cmd.version={{.Version}}

0 commit comments

Comments
 (0)