-
Notifications
You must be signed in to change notification settings - Fork 9
/
.goreleaser.yml
98 lines (87 loc) · 1.68 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
project_name: tejolote
version: 2
env:
- GO111MODULE=on
- CGO_ENABLED=0
- COSIGN_YES=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'
gomod:
proxy: true
builds:
- id: tejolote
main: ./cmd/tejolote
no_unique_dist_dir: true
binary: tejolote-{{ .Arch }}-{{ .Os }}
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.TEJOLOTE_LDFLAGS }}"
archives:
- format: binary
name_template: tejolote-{{ .Arch }}-{{ .Os }}
allow_different_binary_count: true
signs:
# Keyless
- id: tejolote-keyless
signature: "${artifact}.sig"
certificate: "${artifact}.pem"
cmd: cosign
args:
- "sign-blob"
- "--output-signature"
- "${artifact}.sig"
- "--output-certificate"
- "${artifact}.pem"
- "${artifact}"
artifacts: all
sboms:
- id: tejolote
cmd: bom
args:
- generate
- "--output"
- "tejolote.json.spdx"
- "-d"
- "../"
- "-c"
- "../.bom-config.yaml"
- "--format"
- "json"
artifacts: any
documents:
- "tejolote.json.spdx"
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ .Tag }}-next"
release:
github:
owner: kubernetes-sigs
name: tejolote
prerelease: auto
changelog:
disable: true