Skip to content

Commit

Permalink
Fix environment variable setting in Docker publish workflow
Browse files Browse the repository at this point in the history
* Escape the forward slash in the sed command to correctly replace `/` with `-` in branch names
  • Loading branch information
jlantz committed Oct 30, 2024
1 parent 2d5d966 commit 37b8dfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
if [ "${{ github.ref_name }}" == "main" ]; then
echo "IMAGE_TAG=latest" >> $GITHUB_ENV
else
echo "IMAGE_TAG=${{ github.ref_name } | sed -e 's/\//-/g'}" >> $GITHUB_ENV
echo "IMAGE_TAG=${{ github.ref_name } | sed -e 's/\\//-/g'}" >> $GITHUB_ENV
fi
- name: Build and push Docker image
Expand Down

0 comments on commit 37b8dfd

Please sign in to comment.