Skip to content

Commit

Permalink
try to add latest and stable tags
Browse files Browse the repository at this point in the history
  • Loading branch information
maxihafer committed Oct 21, 2024
1 parent 76a3df9 commit f1813e9
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ builds:
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 }}
use: buildx
dockerfile: Dockerfile
build_flag_templates:
Expand All @@ -24,6 +28,10 @@ dockers:
- "--platform=linux/amd64"
- 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 }}
use: buildx
goarch: arm64
build_flag_templates:
Expand All @@ -40,12 +48,20 @@ docker_manifests:
image_templates:
- "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Tag }}-amd64"
- "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Tag }}-arm64"
- name_template: "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:latest"
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"
image_templates:
- "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:stable-amd64"
- "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:stable-arm64"
{{- end}}

release:
prerelease: auto



changelog:
sort: asc
filters:
Expand Down

0 comments on commit f1813e9

Please sign in to comment.