From 214930e6d87df632b754027053f120e80f449019 Mon Sep 17 00:00:00 2001 From: Maximilian Hafer Date: Mon, 21 Oct 2024 23:41:38 +0200 Subject: [PATCH] try other way for stable tags in goreleaser --- .goreleaser.yaml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index bd4840d..e4176ae 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -13,9 +13,7 @@ dockers: - image_templates: - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Tag }}-amd64" - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:latest-amd64" - {{- if not .Prerelease }} - - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:stable-amd64" - {{- end }} + - "{{ if not .Prerelease }}{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:stable-amd64{{ end }}" use: buildx dockerfile: Dockerfile build_flag_templates: @@ -29,9 +27,7 @@ dockers: - image_templates: - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Tag }}-arm64" - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:latest-arm64" - {{- if not .Prerelease }} - - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:stable-arm64" - {{- end }} + - "{{ if not .Prerelease }}{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:stable-arm64{{ end }}" use: buildx goarch: arm64 build_flag_templates: @@ -52,12 +48,10 @@ docker_manifests: image_templates: - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:latest-amd64" - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:latest-arm64" - {{- if not .Prerelease }} - - name_template: "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:stable" + - name_template: "{{ if not .Prerelease }}{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:stable{{ end }}" image_templates: - - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:stable-amd64" - - "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:stable-arm64" - {{- end}} + - "{{ if not .Prerelease }}{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:stable-amd64{{ end }}" + - "{{ if not .Prerelease }}{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:stable-arm64{{ end }}" release: prerelease: auto