Skip to content

Commit 86e6494

Browse files
committed
fix
1 parent d1d088e commit 86e6494

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/docker-build.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,16 @@ jobs:
3535

3636
- name: Set up Docker Buildx
3737
uses: docker/setup-buildx-action@v3
38-
38+
39+
- name: Create sanitized branch name
40+
id: sanitize
41+
run: echo "branch=$(echo ${GITHUB_REF_NAME} | sed 's/\//-/g')" >> $GITHUB_OUTPUT
42+
3943
- name: Build and push sgroups.k8s.np
4044
uses: docker/build-push-action@v6
4145
with:
4246
context: .
4347
file: ./Dockerfile
4448
push: true
45-
tags: ${{ secrets.DOCKERHUB_USERNAME }}/sgroups.k8s.netguard:${{ github.head_ref || github.ref_name }}-${{ steps.short-sha.outputs.sha }}
46-
49+
# tags: ${{ secrets.DOCKERHUB_USERNAME }}/sgroups.k8s.netguard:${{ github.head_ref || github.ref_name }}-${{ steps.short-sha.outputs.sha }}
50+
tags: ${{ secrets.DOCKERHUB_USERNAME }}/sgroups.k8s.netguard:${{ steps.sanitize.outputs.branch }}-${{ steps.short-sha.outputs.sha }}

0 commit comments

Comments
 (0)