forked from kinvolk/lokomotive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
41 lines (35 loc) · 988 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
# Port flags from Makefile.
builds:
- env:
- CGO_ENABLED=0
- GO111MODULE=on
ldflags:
- -X github.com/kinvolk/lokomotive/pkg/version.Version={{.Tag}}
- -extldflags '-static'
flags:
- -buildmode=exe
goarch:
- amd64
goos:
- linux
- darwin
main: ./cmd/lokoctl/main.go
binary: lokoctl
changelog:
# Skip changelog, we'll generate it semi-manually and pass it to goreleaser.
skip: true
# Enable signing checksums.
signs:
- artifacts: all
args: ["-u", "{{ .Env.GPG_FINGERPRINT }}", "--output", "${signature}", "--detach-sign", "${artifact}"]
# Override default project name.
project_name: lokoctl
release:
# Upload a draft release so we can check everything looks good before
# publishing.
draft: true
archives:
- wrap_in_directory: true
name_template: "{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
checksum:
name_template: "{{ .ProjectName }}_{{ .Tag }}_checksums.txt"