Skip to content

Commit 168e93d

Browse files
ci: publish both v-prefixed and raw semver tags to GHCR
1 parent 16dad65 commit 168e93d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ jobs:
4242
id: meta
4343
run: |
4444
TAG_NAME=${GITHUB_REF#refs/tags/}
45+
TAG_RAW=${TAG_NAME#v}
4546
echo "tag=${TAG_NAME}" >> $GITHUB_OUTPUT
46-
echo "Building release for tag: ${TAG_NAME}"
47+
echo "tag_raw=${TAG_RAW}" >> $GITHUB_OUTPUT
48+
echo "Building release for tag: ${TAG_NAME} (raw: ${TAG_RAW})"
4749
4850
- name: Build and Push Multi-Arch Docker Image
4951
uses: docker/build-push-action@v6
@@ -53,6 +55,7 @@ jobs:
5355
push: true
5456
tags: |
5557
ghcr.io/${{ github.repository }}:${{ steps.meta.outputs.tag }}
58+
ghcr.io/${{ github.repository }}:${{ steps.meta.outputs.tag_raw }}
5659
ghcr.io/${{ github.repository }}:latest
5760
cache-from: type=gha
5861
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)