-
Notifications
You must be signed in to change notification settings - Fork 16
/
.goreleaser.yml
34 lines (34 loc) · 930 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
before:
hooks:
- go mod tidy
builds:
- main: ./cmd/main.go
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
ldflags: -X github.com/elastic/eck-diagnostics/internal.buildVersion={{.Env.VERSION}} -X github.com/elastic/eck-diagnostics/internal.buildHash={{.ShortCommit}} -X github.com/elastic/eck-diagnostics/internal.buildDate={{.Env.BUILD_DATE}} -X github.com/elastic/eck-diagnostics/internal.snapshotBuild=false
archives:
- name_template: >-
{{- .ProjectName }}_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
files:
- NOTICE.txt
- LICENSE
- README.md
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Tag }}-SNAPSHOT"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'