Skip to content

Commit

Permalink
fix: validate branch to valid docker tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
Wroud committed May 30, 2024
1 parent 25b6be0 commit 79b5f7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/docker-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,6 @@ jobs:
- name: Tag Docker Image
run: |
IMAGE_NAME=dbeaver/cloudbeaver
TAG_NAME=${{ github.head_ref || github.ref_name }}
BRANCH_NAME=${{ github.head_ref || github.ref_name }}
TAG_NAME=$(echo $BRANCH_NAME | sed 's/[^a-zA-Z0-9._-]/-/g')
docker tag $IMAGE_NAME:dev $IMAGE_NAME:$TAG_NAME

0 comments on commit 79b5f7a

Please sign in to comment.