-
Notifications
You must be signed in to change notification settings - Fork 113
/
.goreleaser.yml
213 lines (198 loc) · 7.08 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
---
version: 2
project_name: chart-releaser
env:
- COSIGN_YES=true
before:
hooks:
- go mod download
sboms:
- artifacts: archive
builds:
- main: cr/main.go
binary: cr
env:
- CGO_ENABLED=0
goarch:
- amd64
- arm
- arm64
- s390x
- ppc64le
goarm:
- 7
goos:
- linux
- darwin
- windows
ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: s390x
- goos: windows
goarch: ppc64le
ldflags:
- >-
-X github.com/helm/chart-releaser/cr/cmd.Version={{ .Tag }}
-X github.com/helm/chart-releaser/cr/cmd.GitCommit={{ .Commit }}
-X github.com/helm/chart-releaser/cr/cmd.BuildDate={{ .Date }}
archives:
- format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ .Tag }}-next"
dockers:
- goos: linux
goarch: amd64
skip_push: "{{ if ne .GitURL \"https://github.com/helm/chart-releaser\" }}true{{ else }}false{{ end }}"
dockerfile: Dockerfile
use: buildx
image_templates:
- quay.io/helmpack/chart-releaser:{{ .Tag }}-amd64
- quay.io/helmpack/chart-releaser:latest-amd64
- ghcr.io/helm/chart-releaser:{{ .Tag }}-amd64
- ghcr.io/helm/chart-releaser:latest-amd64
build_flag_templates:
- "--platform=linux/amd64"
- --label=org.label-schema.schema-version=1.0
- --label=org.label-schema.version={{ .Version }}
- --label=org.label-schema.name={{ .ProjectName }}
- --label=org.label-schema.build-date={{ .Date }}
- --label=org.label-schema.description='cr - The chart release tool'
- --label=org.label-schema.vendor=Helm
- goos: linux
goarch: arm64
skip_push: "{{ if ne .GitURL \"https://github.com/helm/chart-releaser\" }}true{{ else }}false{{ end }}"
dockerfile: Dockerfile
use: buildx
image_templates:
- quay.io/helmpack/chart-releaser:{{ .Tag }}-arm64
- quay.io/helmpack/chart-releaser:latest-arm64
- ghcr.io/helm/chart-releaser:{{ .Tag }}-arm64
- ghcr.io/helm/chart-releaser:latest-arm64
build_flag_templates:
- "--platform=linux/arm64"
- --label=org.label-schema.schema-version=1.0
- --label=org.label-schema.version={{ .Version }}
- --label=org.label-schema.name={{ .ProjectName }}
- --label=org.label-schema.build-date={{ .Date }}
- --label=org.label-schema.description='cr - The chart release tool'
- --label=org.label-schema.vendor=Helm
- goos: linux
goarch: arm
goarm: 7
skip_push: "{{ if ne .GitURL \"https://github.com/helm/chart-releaser\" }}true{{ else }}false{{ end }}"
dockerfile: Dockerfile
use: buildx
image_templates:
- quay.io/helmpack/chart-releaser:{{ .Tag }}-armv7
- quay.io/helmpack/chart-releaser:latest-armv7
- ghcr.io/helm/chart-releaser:{{ .Tag }}-armv7
- ghcr.io/helm/chart-releaser:latest-armv7
build_flag_templates:
- "--platform=linux/arm/v7"
- --label=org.label-schema.schema-version=1.0
- --label=org.label-schema.version={{ .Version }}
- --label=org.label-schema.name={{ .ProjectName }}
- --label=org.label-schema.build-date={{ .Date }}
- --label=org.label-schema.description='cr - The chart release tool'
- --label=org.label-schema.vendor=Helm
- goos: linux
goarch: s390x
skip_push: "{{ if ne .GitURL \"https://github.com/helm/chart-releaser\" }}true{{ else }}false{{ end }}"
dockerfile: Dockerfile
use: buildx
image_templates:
- quay.io/helmpack/chart-releaser:{{ .Tag }}-s390x
- quay.io/helmpack/chart-releaser:latest-s390x
- ghcr.io/helm/chart-releaser:{{ .Tag }}-s390x
- ghcr.io/helm/chart-releaser:latest-s390x
build_flag_templates:
- "--platform=linux/s390x"
- --label=org.label-schema.schema-version=1.0
- --label=org.label-schema.version={{ .Version }}
- --label=org.label-schema.name={{ .ProjectName }}
- --label=org.label-schema.build-date={{ .Date }}
- --label=org.label-schema.description='cr - The chart release tool'
- --label=org.label-schema.vendor=Helm
- goos: linux
goarch: ppc64le
skip_push: "{{ if ne .GitURL \"https://github.com/helm/chart-releaser\" }}true{{ else }}false{{ end }}"
dockerfile: Dockerfile
use: buildx
image_templates:
- quay.io/helmpack/chart-releaser:{{ .Tag }}-ppc64le
- quay.io/helmpack/chart-releaser:latest-ppc64le
- ghcr.io/helm/chart-releaser:{{ .Tag }}-ppc64le
- ghcr.io/helm/chart-releaser:latest-ppc64le
build_flag_templates:
- "--platform=linux/ppc64le"
- --label=org.label-schema.schema-version=1.0
- --label=org.label-schema.version={{ .Version }}
- --label=org.label-schema.name={{ .ProjectName }}
- --label=org.label-schema.build-date={{ .Date }}
- --label=org.label-schema.description='cr - The chart release tool'
- --label=org.label-schema.vendor=Helm
docker_manifests:
- name_template: quay.io/helmpack/chart-releaser:{{ .Tag }}
image_templates:
- quay.io/helmpack/chart-releaser:{{ .Tag }}-amd64
- quay.io/helmpack/chart-releaser:{{ .Tag }}-arm64
- quay.io/helmpack/chart-releaser:{{ .Tag }}-armv7
- quay.io/helmpack/chart-releaser:{{ .Tag }}-s390x
- quay.io/helmpack/chart-releaser:{{ .Tag }}-ppc64le
- name_template: ghcr.io/helm/chart-releaser:{{ .Tag }}
image_templates:
- ghcr.io/helm/chart-releaser:{{ .Tag }}-amd64
- ghcr.io/helm/chart-releaser:{{ .Tag }}-arm64
- ghcr.io/helm/chart-releaser:{{ .Tag }}-armv7
- ghcr.io/helm/chart-releaser:{{ .Tag }}-s390x
- ghcr.io/helm/chart-releaser:{{ .Tag }}-ppc64le
- name_template: quay.io/helmpack/chart-releaser:latest
image_templates:
- quay.io/helmpack/chart-releaser:latest-amd64
- quay.io/helmpack/chart-releaser:latest-arm64
- quay.io/helmpack/chart-releaser:latest-armv7
- quay.io/helmpack/chart-releaser:latest-s390x
- quay.io/helmpack/chart-releaser:latest-ppc64le
- name_template: ghcr.io/helm/chart-releaser:latest
image_templates:
- ghcr.io/helm/chart-releaser:latest-amd64
- ghcr.io/helm/chart-releaser:latest-arm64
- ghcr.io/helm/chart-releaser:latest-armv7
- ghcr.io/helm/chart-releaser:latest-s390x
- ghcr.io/helm/chart-releaser:latest-ppc64le
signs:
- id: all
signature: "${artifact}.sig"
certificate: "${artifact}.pem"
cmd: cosign
args: ["sign-blob", "--output-signature", "${artifact}.sig", "--output-certificate", "${artifact}.pem", "${artifact}"]
artifacts: all
docker_signs:
- id: images
cmd: cosign
args: ["sign", "${artifact}"]
artifacts: manifests
brews:
- repository:
owner: helm
name: homebrew-tap
token: "{{ .Env.CI_HOMEBREW_TOKEN }}"
commit_author:
name: helm-bot
email: helm-bot@users.noreply.github.com
directory: Formula
homepage: "{{ .GitURL }}"
description: Hosting Helm Charts via GitHub Pages and Releases
install: |
bin.install "cr"
test: |
system "#{bin}/cr version"