Skip to content

Commit 9846131

Browse files
committed
.
1 parent de362c1 commit 9846131

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/docker-publish.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,13 @@ jobs:
2626
- name: Set up Buildx
2727
uses: docker/setup-buildx-action@v3
2828

29+
- name: Normalize Tag
30+
id: normalize
31+
run: echo "tag=$(echo ${{ github.ref_name }} | sed 's/[\/\.]/-/g')" >> $GITHUB_OUTPUT
32+
2933
- name: Build and Push Docker Image
3034
uses: docker/build-push-action@v6
3135
with:
3236
push: true
33-
tags: ${{ github.repository }}:${{ github.ref_name.replace('/','-').replace('.','-') }}
37+
tags: ${{ github.repository }}:${{ steps.normalize.outputs.tag }}
3438
platforms: linux/amd64,linux/arm64

0 commit comments

Comments
 (0)