-
Notifications
You must be signed in to change notification settings - Fork 14
/
.goreleaser.yml
32 lines (32 loc) · 977 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
before:
hooks:
- make release-prepare
builds:
- env:
- CGO_ENABLED=0
## Overlaps with what is defined in Makefile - we should find a away of having it defined only once
- PACKAGE_NAME=github.com/maistra/istio-workspace
- RELEASE=true
main: ./cmd/ike
binary: ike
goos:
- linux
- darwin
goarch:
- 386
- amd64
- arm64
ldflags:
## FIXME Overlaps with what is defined in Makefile - we should find a away of having it defined only once
- -s -w -X {{.Env.PACKAGE_NAME}}/version.Release={{.Env.RELEASE}} -X {{.Env.PACKAGE_NAME}}/version.Version=v{{.Version}} -X {{.Env.PACKAGE_NAME}}/version.Commit={{.ShortCommit}} -X {{.Env.PACKAGE_NAME}}/version.BuildTime={{.Date}}
archives:
- name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
replacements:
darwin: Darwin
linux: Linux
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"