-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yml
43 lines (43 loc) · 972 Bytes
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# See documentation at https://goreleaser.com
version: 2
before:
hooks:
- go mod download
builds:
- id: netways-support-collector
binary: netways-support-collector
env:
- CGO_ENABLED=0
goarch:
- amd64
goos:
- linux
ldflags:
- >-
-s -w -X main.version={{.Version}}
-X main.commit={{.Commit}}
-X main.date={{.CommitDate}}
release:
github:
owner: NETWAYS
name: support-collector
archives:
- format: binary
name_template: >-
{{ .ProjectName }}_{{ .Tag }}_
{{- if eq .Os "linux" }}Linux{{ end }}
{{- if eq .Os "windows" }}Windows{{ end }}
{{- if eq .Os "darwin" }}Darwin{{ end }}
{{- if eq .Arch "amd64" }}_x86_64{{ end }}
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: '{{ .Version }}-SNAPSHOT-{{.ShortCommit}}'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^ci:'
- '^goreleaser:'