From 35edcc9e5d826eb45267bacbe4305143e60e6629 Mon Sep 17 00:00:00 2001 From: elliotxx <951376975@qq.com> Date: Wed, 7 Aug 2024 16:07:15 +0800 Subject: [PATCH] chore: support arm64 iamge --- .goreleaser/.goreleaser.yml | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/.goreleaser/.goreleaser.yml b/.goreleaser/.goreleaser.yml index dae5aa8c..0628a224 100644 --- a/.goreleaser/.goreleaser.yml +++ b/.goreleaser/.goreleaser.yml @@ -170,18 +170,20 @@ dockers: extra_files: - pkg/version/VERSION - config/relationship.yaml -# - image_templates: -# - 'kusionstack/{{ .ProjectName }}:{{ .Tag }}-arm64' -# dockerfile: Dockerfile -# use: docker -# build_flag_templates: -# - "--pull" -# - "--label=org.opencontainers.image.created={{.Date}}" -# - "--label=org.opencontainers.image.name={{.ProjectName}}" -# - "--label=org.opencontainers.image.revision={{.FullCommit}}" -# - "--label=org.opencontainers.image.version={{.Version}}" -# - "--label=org.opencontainers.image.source={{.GitURL}}" -# - "--platform=linux/arm64" -# goarch: arm64 -# extra_files: -# - ui/ +- image_templates: + - 'kusionstack/{{ .ProjectName }}:{{ .Tag }}' + - 'kusionstack/{{ .ProjectName }}:latest' + dockerfile: Dockerfile + use: docker + build_flag_templates: + - "--pull" + - "--label=org.opencontainers.image.created={{.Date}}" + - "--label=org.opencontainers.image.name={{.ProjectName}}" + - "--label=org.opencontainers.image.revision={{.FullCommit}}" + - "--label=org.opencontainers.image.version={{.Version}}" + - "--label=org.opencontainers.image.source={{.GitURL}}" + - "--platform=linux/arm64" + goarch: arm64 + extra_files: + - pkg/version/VERSION + - config/relationship.yaml