-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.goreleaser.yml
35 lines (35 loc) · 949 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
project_name: go-elasticsearch-alerts
builds:
- ldflags:
- -s -w
- -X "github.com/morningconsult/go-elasticsearch-alerts/version.Version={{ .Version }}" -X "github.com/morningconsult/go-elasticsearch-alerts/version.Commit={{ .ShortCommit }}" -X "github.com/morningconsult/go-elasticsearch-alerts/version.Date={{ time "Jan 02, 2006" }}"
env:
- CGO_ENABLED=0
goos:
- windows
- darwin
- linux
ignore:
- goos: windows
goarch: arm64
archives:
- id: main
name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'