Skip to content

Commit a76387d

Browse files
committed
fix: sanitize Docker tag — replace slashes in branch names with dashes
1 parent 3c6e5dd commit a76387d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
TAG="nightly"
5757
else
5858
BRANCH="${{ github.event.inputs.tag || github.ref_name }}"
59-
TAG="$BRANCH"
59+
TAG=$(echo "$BRANCH" | tr '/' '-')
6060
fi
6161
echo "tag=$TAG" >> $GITHUB_OUTPUT
6262
echo "TAG=$TAG" >> $GITHUB_ENV

0 commit comments

Comments
 (0)