Skip to content

Commit 0291e14

Browse files
committed
Update goreleaser config
1 parent c2fd173 commit 0291e14

1 file changed

Lines changed: 23 additions & 6 deletions

File tree

.goreleaser.yml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,39 @@ before:
44
hooks:
55
- go mod download
66
builds:
7-
- goos:
7+
- env:
8+
- CGO_ENABLED=0
9+
goarch:
10+
- amd64
11+
- arm64
12+
goos:
813
- linux
914
- windows
1015
- darwin
11-
env:
12-
- CGO_ENABLED=0
16+
ldflags:
17+
- >-
18+
-s -w -X main.version={{.Version}}
19+
-X main.commit={{.Commit}}
20+
-X main.date={{.CommitDate}}
1321
release:
22+
draft: true
1423
github:
15-
owner: Icinga
24+
owner: NETWAYS
1625
name: check_by_powershell
1726
archives:
18-
- format: binary
27+
- formats:
28+
- binary
29+
name_template: >-
30+
{{ .ProjectName }}_{{ .Tag }}_
31+
{{- if eq .Os "linux" }}Linux{{ end }}
32+
{{- if eq .Os "windows" }}Windows{{ end }}
33+
{{- if eq .Os "darwin" }}Darwin{{ end }}
34+
{{- if eq .Arch "amd64" }}_x86_64{{ end }}
35+
{{- if eq .Arch "arm64" }}_arm64{{ end }}
1936
checksum:
2037
name_template: 'checksums.txt'
2138
snapshot:
22-
name_template: '{{ .Tag }}-SNAPSHOT-{{.ShortCommit}}'
39+
version_template: '{{ .Tag }}-SNAPSHOT-{{.ShortCommit}}'
2340
changelog:
2441
sort: asc
2542
filters:

0 commit comments

Comments
 (0)