Skip to content

Commit fa0d7e8

Browse files
committed
fix: push by labels in matrix stage
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
1 parent c282a3d commit fa0d7e8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/push-image.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ jobs:
4141
uses: docker/metadata-action@v5
4242
with:
4343
images: ${{ env.REGISTRY_IMAGE }}
44-
tags: |
45-
type=match,pattern=\d.\d.\d
46-
type=sha,prefix=
4744
-
4845
name: Set up QEMU
4946
uses: docker/setup-qemu-action@v3
@@ -64,7 +61,7 @@ jobs:
6461
context: .
6562
file: ./deployments/Dockerfile
6663
platforms: ${{ matrix.platform }}
67-
tags: ${{ steps.meta.outputs.tags }}
64+
labels: ${{ steps.meta.outputs.labels }}
6865
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
6966
build-args: |
7067
RUNTIME=${{ github.event.inputs.runtime || 'hackmdio/runtime:16.20.2-58224661' }}
@@ -105,6 +102,9 @@ jobs:
105102
uses: docker/metadata-action@v5
106103
with:
107104
images: ${{ env.REGISTRY_IMAGE }}
105+
tags: |
106+
type=match,pattern=\d.\d.\d
107+
type=sha,prefix=
108108
-
109109
name: Login to Docker Hub
110110
uses: docker/login-action@v3

0 commit comments

Comments
 (0)