fix github workflow setting latest tag

This commit is contained in:
maxDorninger
2025-05-31 11:12:12 +02:00
parent 18605683a8
commit c89a5a19e8
2 changed files with 2 additions and 6 deletions

View File

@@ -32,13 +32,9 @@ jobs:
with:
images: ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}/backend
tags: |
# set latest tag for default branch
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
# tag event 'refs/tags/v1.0.0' will generate 'v1.0.0'
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
type=ref,event=tag
# branch event 'refs/heads/main' will generate 'main'
type=ref,event=branch
# sha
type=sha
- name: Build and push Docker image