Skip to content

Commit d39e5d4

Browse files
committed
ci: add latest tag to main branch docker builds
1 parent 1d341cd commit d39e5d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/docker-build.yml

+2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
with:
4545
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
4646
tags: |
47+
type=raw,value=latest,enable={{is_default_branch}}
4748
type=ref,event=branch
4849
type=ref,event=tag
4950
type=ref,event=pr
@@ -113,6 +114,7 @@ jobs:
113114
with:
114115
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
115116
tags: |
117+
type=raw,value=latest,enable={{is_default_branch}}
116118
type=ref,event=branch
117119
type=ref,event=tag
118120
type=ref,event=pr

0 commit comments

Comments
 (0)