diff --git a/.goreleaser.yml b/.goreleaser.yml index 197c6cb84..69d8051de 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -26,21 +26,33 @@ dockers: dockerfile: Dockerfile goos: linux goarch: amd64 + use: buildx + build_flag_templates: + - "--platform=linux/amd64" - image_templates: - "{{ .Env.IMAGE_REPO }}:{{ .Env.IMAGE_TAG }}-arm64" dockerfile: Dockerfile goos: linux goarch: arm64 + use: buildx + build_flag_templates: + - "--platform=linux/arm64" - image_templates: - "{{ .Env.IMAGE_REPO }}:{{ .Env.IMAGE_TAG }}-ppc64le" dockerfile: Dockerfile goos: linux goarch: ppc64le + use: buildx + build_flag_templates: + - "--platform=linux/ppc64le" - image_templates: - "{{ .Env.IMAGE_REPO }}:{{ .Env.IMAGE_TAG }}-s390x" dockerfile: Dockerfile goos: linux goarch: s390x + use: buildx + build_flag_templates: + - "--platform=linux/s390x" docker_manifests: - name_template: "{{ .Env.IMAGE_REPO }}:{{ .Env.IMAGE_TAG }}" image_templates: