Skip to content

Commit 6301cc2

Browse files
committed
workflow disable latest
1 parent 21e1608 commit 6301cc2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/docker.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ jobs:
4949
uses: docker/metadata-action@v5
5050
with:
5151
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
52+
# Disable the automatic "latest" tag (default is latest=auto, which also
53+
# tags latest on every semver Git tag push). "latest" is controlled
54+
# explicitly below so it is only applied for the main branch.
55+
flavor: |
56+
latest=false
5257
tags: |
5358
type=ref,event=branch
5459
type=ref,event=pr

0 commit comments

Comments
 (0)