Skip to content

Commit 172c9af

Browse files
tl
1 parent 5db8c83 commit 172c9af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/docker-publish.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,13 @@ jobs:
3232
uses: docker/metadata-action@v5
3333
with:
3434
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
35+
tags: |
36+
type=raw,value=latest,enable={{is_default_branch}}
3537
3638
- name: Build and push Docker image
3739
uses: docker/build-push-action@v5
3840
with:
3941
context: docker
4042
push: ${{ github.event_name != 'pull_request' }}
41-
tags: type=raw,value=latest,enable={{is_default_branch}}
43+
tags: ${{ steps.meta.outputs.tags }}
4244
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)