Skip to content

Commit cece9b2

Browse files
authored
update .goreleaser.yaml to properly build multi-arch images (#186)
1 parent d21eec9 commit cece9b2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.goreleaser.yml

+12
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,33 @@ dockers:
2626
dockerfile: Dockerfile
2727
goos: linux
2828
goarch: amd64
29+
use: buildx
30+
build_flag_templates:
31+
- "--platform=linux/amd64"
2932
- image_templates:
3033
- "{{ .Env.IMAGE_REPO }}:{{ .Env.IMAGE_TAG }}-arm64"
3134
dockerfile: Dockerfile
3235
goos: linux
3336
goarch: arm64
37+
use: buildx
38+
build_flag_templates:
39+
- "--platform=linux/arm64"
3440
- image_templates:
3541
- "{{ .Env.IMAGE_REPO }}:{{ .Env.IMAGE_TAG }}-ppc64le"
3642
dockerfile: Dockerfile
3743
goos: linux
3844
goarch: ppc64le
45+
use: buildx
46+
build_flag_templates:
47+
- "--platform=linux/ppc64le"
3948
- image_templates:
4049
- "{{ .Env.IMAGE_REPO }}:{{ .Env.IMAGE_TAG }}-s390x"
4150
dockerfile: Dockerfile
4251
goos: linux
4352
goarch: s390x
53+
use: buildx
54+
build_flag_templates:
55+
- "--platform=linux/s390x"
4456
docker_manifests:
4557
- name_template: "{{ .Env.IMAGE_REPO }}:{{ .Env.IMAGE_TAG }}"
4658
image_templates:

0 commit comments

Comments
 (0)