Skip to content

Commit e5bf1ef

Browse files
committed
Update .goreleaser.yml to be similar to our other repos
1 parent 9cb72c5 commit e5bf1ef

File tree

1 file changed

+29
-15
lines changed

1 file changed

+29
-15
lines changed

.goreleaser.yml

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

0 commit comments

Comments
 (0)