Skip to content

Commit

Permalink
fix branch name extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
cgeller committed Jan 29, 2024
1 parent 8a5c10b commit 929f38b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ jobs:

- name: Set image tag
run: |
echo "IMAGE_TAG_SUFFIX=_$(echo '${{ github.ref_name }}' | sed '/\//-/g')_ci" >> $GITHUB_ENV
branch_name=$(echo "${{ github.ref_name }}" | tr / -)
echo "IMAGE_TAG_SUFFIX=_${{ branch_name }}_ci" >> $GITHUB_ENV
if: github.ref.name != github.event.repository.default_branch

- uses: docker/build-push-action@v5
Expand Down

0 comments on commit 929f38b

Please sign in to comment.