Skip to content

Commit ab18f8c

Browse files
committed
fix(ci): properly set docker image tags.
1 parent ed4c3f7 commit ab18f8c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/build-publish-image.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ jobs:
3535
uses: docker/metadata-action@v5
3636
with:
3737
images: ${{ env.DOCKER_IMAGE }}
38-
38+
tags: |
39+
type=raw,value=latest,enable={{is_default_branch}}
40+
type=ref,event=branch
41+
type=sha
3942
- name: Set up QEMU
4043
uses: docker/setup-qemu-action@v3
4144

@@ -56,8 +59,7 @@ jobs:
5659
context: .
5760
platforms: ${{ matrix.platform }}
5861
labels: ${{ steps.meta.outputs.labels }}
59-
tags: |
60-
type=raw,value=latest,enable={{is_default_branch}}
62+
tags: ${{ steps.meta.output.tags }}
6163
outputs: type=image,name=${{ env.DOCKER_IMAGE }},push-by-digest=true,name-canonical=true,push=true
6264

6365
- name: Docker container vulnerability scan

0 commit comments

Comments
 (0)