Skip to content

Commit

Permalink
try other way for stable tags in goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
maxihafer committed Oct 21, 2024
1 parent f1813e9 commit 214930e
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 214930e

Please sign in to comment.