Skip to content

Commit fffcaf0

Browse files
gha: Set latest tag for default branch.
1 parent 7afc749 commit fffcaf0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ jobs:
6868
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
6969
with:
7070
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
71+
tags: |
72+
type=raw,value=latest,enable={{is_default_branch}}
7173
7274
# Build and push Docker image with Buildx (don't push on PR)
7375
# https://github.com/docker/build-push-action

0 commit comments

Comments
 (0)