From 84a5daf586aad600e840915807a19902609e875c Mon Sep 17 00:00:00 2001 From: OpenShift Cherrypick Robot Date: Fri, 28 Apr 2023 14:24:45 +0000 Subject: [PATCH] [release-v0.1] update .goreleaser.yaml to properly build multi-arch images (#57) update .goreleaser.yaml to properly build multi-arch images Signed-off-by: Bryce Palmer Co-authored-by: Bryce Palmer --- .goreleaser.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index 2dbe95f5..10b2d749 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -42,21 +42,33 @@ dockers: dockerfile: controller.Dockerfile goos: linux goarch: amd64 + use: buildx + build_flag_templates: + - "--platform=linux/amd64" - image_templates: - "{{ .Env.CONTROLLER_IMAGE_REPO }}:{{ .Env.IMAGE_TAG }}-arm64" dockerfile: controller.Dockerfile goos: linux goarch: arm64 + use: buildx + build_flag_templates: + - "--platform=linux/arm64" - image_templates: - "{{ .Env.CONTROLLER_IMAGE_REPO }}:{{ .Env.IMAGE_TAG }}-ppc64le" dockerfile: controller.Dockerfile goos: linux goarch: ppc64le + use: buildx + build_flag_templates: + - "--platform=linux/ppc64le" - image_templates: - "{{ .Env.CONTROLLER_IMAGE_REPO }}:{{ .Env.IMAGE_TAG }}-s390x" dockerfile: controller.Dockerfile goos: linux goarch: s390x + use: buildx + build_flag_templates: + - "--platform=linux/s390x" # TODO: When the apiserver is working properly, uncomment this: # - image_templates: # - "{{ .Env.APISERVER_IMAGE_REPO }}:{{ .Env.IMAGE_TAG }}-amd64"