forked from kubernetes-sigs/zeitgeist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
71 lines (62 loc) · 1.15 KB
/
.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
project_name: zeitgeist
env:
- GO111MODULE=on
- CGO_ENABLED=0
- COSIGN_EXPERIMENTAL=true
before:
hooks:
- go mod tidy
- /bin/bash -c 'if [ -n "$(git --no-pager diff --exit-code go.mod go.sum)" ]; then exit 1; fi'
- /bin/bash -c 'make ko-release'
- /bin/bash -c 'make sign-images'
gomod:
proxy: true
builds:
- goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
- arm
- s390x
- ppc64le
goarm:
- '7'
ignore:
- goos: windows
goarch: arm64
- goos: windows
goarch: arm
- goos: windows
goarch: s390x
- goos: windows
goarch: ppc64le
flags:
- -trimpath
ldflags:
- "{{ .Env.LDFLAGS }}"
signs:
# Keyless
- id: cosign-keyless
signature: "${artifact}.sig"
certificate: "${artifact}.pem"
cmd: ./dist/cosign-linux-amd64
args: ["sign-blob", "--output-signature", "${artifact}.sig", "--output-certificate", "${artifact}.pem", "${artifact}"]
artifacts: all
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
release:
github:
owner: kubernetes-sigs
name: zeitgeist
prerelease: auto
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'