forked from sapcc/kubernikus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
50 lines (45 loc) · 1.08 KB
/
.goreleaser.yaml
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
44
45
46
47
48
49
50
project_name: kubernikus
before:
hooks:
- go mod tidy
builds:
- main: ./cmd/kubernikusctl
binary: kubernikusctl
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
- goos: linux
goarch: arm64
ldflags:
- -s -w
- -X github.com/sapcc/kubernikus/pkg/version.GitCommit={{ .FullCommit }}
# Set the modified timestamp on the output binary to ensure that builds are reproducible.
mod_timestamp: "{{ .CommitTimestamp }}"
snapshot:
name_template: "{{ .Tag }}-next"
checksum:
name_template: "checksums.txt"
signs:
- artifacts: checksum
#stdin: '{{ .Env.GPG_PASSWORD }}'
args: ["--batch","--output", "$signature", "--detach-sign", "$artifact"]
archives:
- name_template: '{{ .ProjectName }}-{{ replace .Version "v" "" }}-{{ .Os }}-{{ .Arch }}'
format_overrides:
- goos: windows
format: zip
release:
mode: replace
github:
owner: databus23
name: kubernikus
target_commitish: '{{ .Commit }}'