Skip to content

Commit 47f155f

Browse files
committed
mod: update value passed to publish
1 parent c3db2d5 commit 47f155f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ jobs:
2323
uses: docker/metadata-action@v5
2424
with:
2525
images: ghcr.io/${{ github.actor }}/rust-wasi-hello
26+
tags: |
27+
type=ref,event=branch
28+
type=ref,event=pr
29+
type=semver,pattern={{version}}
30+
type=semver,pattern={{major}}.{{minor}}
2631
- name: Login to GitHub Container Registry
2732
uses: docker/login-action@v3
2833
with:
@@ -52,4 +57,4 @@ jobs:
5257
run: bash scripts/build.sh
5358

5459
- name: Run publish script
55-
run: bash scripts/publish.sh ${{ steps.meta.outputs.tags }}
60+
run: bash scripts/publish.sh ${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}

0 commit comments

Comments
 (0)