ci: fix container tags again
This commit is contained in:
@@ -26,14 +26,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}
|
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}
|
||||||
tags: |
|
tags: |
|
||||||
# Keep a moving branch tag (e.g., main)
|
# Latest tag will automatically be generated for the latest tagged release
|
||||||
type=ref,event=branch
|
|
||||||
# Version tag on releases (e.g., v1.2.3)
|
# Version tag on releases (e.g., v1.2.3)
|
||||||
type=ref,event=tag
|
type=ref,event=tag
|
||||||
|
# Keep a moving branch tag (e.g., main)
|
||||||
|
type=ref,event=branch
|
||||||
# Snapshot tag for commits on the default branch (e.g., snapshot-<hash>)
|
# Snapshot tag for commits on the default branch (e.g., snapshot-<hash>)
|
||||||
type=raw,value=snapshot-{{sha}},enable={{is_default_branch}}
|
type=raw,value=snapshot-{{sha}},enable={{is_default_branch}}
|
||||||
# Move "latest" only when building from a tag
|
|
||||||
type=raw,value=latest,enable={{is_tag}}
|
|
||||||
|
|
||||||
- name: Log in to Container Registry
|
- name: Log in to Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
|
|||||||
Reference in New Issue
Block a user