Skip to content

Commit

Permalink
[release-v0.1] update .goreleaser.yaml to properly build multi-arch i…
Browse files Browse the repository at this point in the history
…mages (#57)

update .goreleaser.yaml to properly build multi-arch images

Signed-off-by: Bryce Palmer <bpalmer@redhat.com>
Co-authored-by: Bryce Palmer <bpalmer@redhat.com>
  • Loading branch information
openshift-cherrypick-robot and everettraven committed Apr 28, 2023
1 parent df299ed commit 84a5daf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 84a5daf

Please sign in to comment.