Skip to content

Commit

Permalink
[GH Actions] Publish Docker: Replace '/' with '-' in docker image name (
Browse files Browse the repository at this point in the history
#6286)

* Replace '/' with '-' in docker image name

* Revert double quotes

---------

Co-authored-by: Ruben Buniatyan <rubo@users.noreply.github.com>
  • Loading branch information
2 people authored and kamilchodola committed Dec 14, 2023
1 parent 17285a2 commit 1dc0cc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ jobs:
- name: Build and push image to Docker Hub (staging)
run: |
branch=$(echo "${{ github.ref }}" | sed -e "s/refs\/heads\///g")
tag=${{ github.event.inputs.tag || '$branch' }}
original_tag=${{ github.event.inputs.tag || '$branch' }}
tag=$(echo "$original_tag" | sed 's/\//-/g') # replace '/' with '-' in tag name
build_timestamp=$(date '+%s')
echo "Building image with tag $tag"
Expand Down

0 comments on commit 1dc0cc8

Please sign in to comment.