From 6dd506d7b59988684f98304e531af16f414a7c9b Mon Sep 17 00:00:00 2001 From: Maksim Paskal Date: Wed, 7 Sep 2022 18:43:54 +0300 Subject: [PATCH] fix multiarc (#11) Signed-off-by: Maksim Paskal --- .goreleaser.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 2c73c43..da2e6c2 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -4,13 +4,21 @@ release: ## Docker Images - `paskalmaksim/{{.ProjectName}}:latest` - `paskalmaksim/{{.ProjectName}}:{{.Tag}}` +docker_manifests: +- name_template: paskalmaksim/{{.ProjectName}}:latest + image_templates: + - paskalmaksim/{{.ProjectName}}:{{.Tag}}-amd64 + - paskalmaksim/{{.ProjectName}}:{{.Tag}}-arm64 +- name_template: paskalmaksim/{{.ProjectName}}:{{.Tag}} + image_templates: + - paskalmaksim/{{.ProjectName}}:{{.Tag}}-amd64 + - paskalmaksim/{{.ProjectName}}:{{.Tag}}-arm64 dockers: - use: buildx goos: linux goarch: amd64 image_templates: - - paskalmaksim/{{.ProjectName}}:latest - - paskalmaksim/{{.ProjectName}}:{{.Tag}} + - paskalmaksim/{{.ProjectName}}:{{.Tag}}-amd64 build_flag_templates: - "--platform=linux/amd64" - "--label=org.opencontainers.image.created={{.Date}}" @@ -21,8 +29,7 @@ dockers: goos: linux goarch: arm64 image_templates: - - paskalmaksim/{{.ProjectName}}:latest - - paskalmaksim/{{.ProjectName}}:{{.Tag}} + - paskalmaksim/{{.ProjectName}}:{{.Tag}}-arm64 build_flag_templates: - "--platform=linux/arm64/v8" - "--label=org.opencontainers.image.created={{.Date}}"