Skip to content

Commit f0c1a6b

Browse files
committed
support docker manifests
1 parent e7516bf commit f0c1a6b

File tree

1 file changed

+101
-7
lines changed

1 file changed

+101
-7
lines changed

.goreleaser.yaml

+101-7
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,12 @@ dockers:
142142
- id: manager
143143
ids:
144144
- ctrlmesh-manager
145+
#skip_push: true
145146
goos: linux
146147
goarch: amd64
147148
image_templates:
148-
- 'kusionstack/ctrlmesh-manager:{{ .Tag }}'
149-
- 'kusionstack/ctrlmesh-manager:latest'
149+
- 'kusionstack/ctrlmesh-manager:{{ .Tag }}-amd64'
150+
#- 'kusionstack/ctrlmesh-manager:latest'
150151
dockerfile: ./artifacts/goreleaser/manager.Dockerfile
151152
use: docker
152153
build_flag_templates:
@@ -157,14 +158,35 @@ dockers:
157158
- "--label=org.opencontainers.image.version={{.Version}}"
158159
- "--label=org.opencontainers.image.source={{.GitURL}}"
159160
- "--platform=linux/amd64"
161+
- id: manager-arm
162+
ids:
163+
- ctrlmesh-manager
164+
#skip_push: true
165+
goos: linux
166+
goarch: arm64
167+
image_templates:
168+
- 'kusionstack/ctrlmesh-manager:{{ .Tag }}-arm64'
169+
#- 'kusionstack/ctrlmesh-manager:latest'
170+
dockerfile: ./artifacts/goreleaser/manager.Dockerfile
171+
use: docker
172+
build_flag_templates:
173+
- "--pull"
174+
- "--label=org.opencontainers.image.created={{.Date}}"
175+
- "--label=org.opencontainers.image.name=ctrlmesh-manager"
176+
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
177+
- "--label=org.opencontainers.image.version={{.Version}}"
178+
- "--label=org.opencontainers.image.source={{.GitURL}}"
179+
- "--platform=linux/arm64"
180+
160181
- id: proxy
161182
ids:
162183
- ctrlmesh-proxy
184+
#skip_push: true
163185
goos: linux
164186
goarch: amd64
165187
image_templates:
166-
- 'kusionstack/ctrlmesh-proxy:{{ .Tag }}'
167-
- 'kusionstack/ctrlmesh-proxy:latest'
188+
- 'kusionstack/ctrlmesh-proxy:{{ .Tag }}-amd64'
189+
#- 'kusionstack/ctrlmesh-proxy:latest'
168190
dockerfile: ./artifacts/goreleaser/proxy.Dockerfile
169191
extra_files:
170192
- artifacts/scripts/
@@ -177,14 +199,37 @@ dockers:
177199
- "--label=org.opencontainers.image.version={{.Version}}"
178200
- "--label=org.opencontainers.image.source={{.GitURL}}"
179201
- "--platform=linux/amd64"
202+
- id: proxy-arm
203+
ids:
204+
- ctrlmesh-proxy
205+
#skip_push: true
206+
goos: linux
207+
goarch: arm64
208+
image_templates:
209+
- 'kusionstack/ctrlmesh-proxy:{{ .Tag }}-arm64'
210+
#- 'kusionstack/ctrlmesh-proxy:latest'
211+
dockerfile: ./artifacts/goreleaser/proxy.Dockerfile
212+
extra_files:
213+
- artifacts/scripts/
214+
use: docker
215+
build_flag_templates:
216+
- "--pull"
217+
- "--label=org.opencontainers.image.created={{.Date}}"
218+
- "--label=org.opencontainers.image.name=ctrlmesh-proxy"
219+
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
220+
- "--label=org.opencontainers.image.version={{.Version}}"
221+
- "--label=org.opencontainers.image.source={{.GitURL}}"
222+
- "--platform=linux/arm64"
223+
180224
- id: init
181225
ids:
182226
- cert-generator
227+
#skip_push: true
183228
goos: linux
184229
goarch: amd64
185230
image_templates:
186-
- 'kusionstack/ctrlmesh-init:{{ .Tag }}'
187-
- 'kusionstack/ctrlmesh-init:latest'
231+
- 'kusionstack/ctrlmesh-init:{{ .Tag }}-amd64'
232+
#- 'kusionstack/ctrlmesh-init:latest'
188233
dockerfile: ./artifacts/goreleaser/init.Dockerfile
189234
extra_files:
190235
- artifacts/scripts/
@@ -196,4 +241,53 @@ dockers:
196241
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
197242
- "--label=org.opencontainers.image.version={{.Version}}"
198243
- "--label=org.opencontainers.image.source={{.GitURL}}"
199-
- "--platform=linux/amd64"
244+
- "--platform=linux/amd64"
245+
- id: init-arm
246+
ids:
247+
- cert-generator
248+
#skip_push: true
249+
goos: linux
250+
goarch: arm64
251+
image_templates:
252+
- 'kusionstack/ctrlmesh-init:{{ .Tag }}-arm64'
253+
#- 'kusionstack/ctrlmesh-init:latest'
254+
dockerfile: ./artifacts/goreleaser/init.Dockerfile
255+
extra_files:
256+
- artifacts/scripts/
257+
use: docker
258+
build_flag_templates:
259+
- "--pull"
260+
- "--label=org.opencontainers.image.created={{.Date}}"
261+
- "--label=org.opencontainers.image.name=ctrlmesh-init"
262+
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
263+
- "--label=org.opencontainers.image.version={{.Version}}"
264+
- "--label=org.opencontainers.image.source={{.GitURL}}"
265+
- "--platform=linux/arm64"
266+
267+
docker_manifests:
268+
- name_template: 'kusionstack/ctrlmesh-manager:{{ .Tag }}'
269+
image_templates:
270+
- 'kusionstack/ctrlmesh-manager:{{ .Tag }}-amd64'
271+
- 'kusionstack/ctrlmesh-manager:{{ .Tag }}-arm64'
272+
- name_template: 'kusionstack/ctrlmesh-manager:latest'
273+
image_templates:
274+
- 'kusionstack/ctrlmesh-manager:{{ .Tag }}-amd64'
275+
- 'kusionstack/ctrlmesh-manager:{{ .Tag }}-arm64'
276+
277+
- name_template: 'kusionstack/ctrlmesh-proxy:{{ .Tag }}'
278+
image_templates:
279+
- 'kusionstack/ctrlmesh-proxy:{{ .Tag }}-amd64'
280+
- 'kusionstack/ctrlmesh-proxy:{{ .Tag }}-arm64'
281+
- name_template: 'kusionstack/ctrlmesh-proxy:latest'
282+
image_templates:
283+
- 'kusionstack/ctrlmesh-proxy:{{ .Tag }}-amd64'
284+
- 'kusionstack/ctrlmesh-proxy:{{ .Tag }}-arm64'
285+
286+
- name_template: 'kusionstack/ctrlmesh-init:{{ .Tag }}'
287+
image_templates:
288+
- 'kusionstack/ctrlmesh-init:{{ .Tag }}-amd64'
289+
- 'kusionstack/ctrlmesh-init:{{ .Tag }}-arm64'
290+
- name_template: 'kusionstack/ctrlmesh-init:latest'
291+
image_templates:
292+
- 'kusionstack/ctrlmesh-init:{{ .Tag }}-amd64'
293+
- 'kusionstack/ctrlmesh-init:{{ .Tag }}-arm64'

0 commit comments

Comments
 (0)