From b4af00301cc4932d7504d07007530eb923c6ba03 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Sun, 14 May 2023 13:43:16 -0400 Subject: [PATCH] goreleaser: build arm64 images Signed-off-by: Rui Chen --- .goreleaser.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index 820d718..d7902bd 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -49,6 +49,24 @@ dockers: - "--platform=linux/amd64" goos: linux goarch: amd64 + - image_templates: + - 'ghcr.io/{{.Env.GIT_OWNER}}/kubeconform:latest-arm64' + - 'ghcr.io/{{.Env.GIT_OWNER}}/kubeconform:{{ .Tag }}-arm64' + dockerfile: Dockerfile + build_flag_templates: + - "--platform=linux/arm64" + goos: linux + goarch: arm64 + use: buildx + - image_templates: + - 'ghcr.io/{{.Env.GIT_OWNER}}/kubeconform:latest-arm64-alpine' + - 'ghcr.io/{{.Env.GIT_OWNER}}/kubeconform:{{ .Tag }}-arm64-alpine' + dockerfile: Dockerfile-alpine + build_flag_templates: + - "--platform=linux/arm64" + goos: linux + goarch: arm64 + use: buildx checksum: name_template: 'CHECKSUMS'