File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff 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 }}
You can’t perform that action at this time.
0 commit comments