We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 113f062 commit 79b80b4Copy full SHA for 79b80b4
1 file changed
.github/workflows/deploy-unified.yml
@@ -163,7 +163,10 @@ jobs:
163
# Generate unique tag for manual deployment runs
164
TIMESTAMP=$(date +%Y%m%d-%H%M%S)
165
RUN_ID="${{ github.run_id }}"
166
- UNIQUE_TAG="manual-${TIMESTAMP}-${RUN_ID}"
+ BRANCH_NAME="${{ env.BRANCH_NAME }}"
167
+ # Sanitize branch name for Docker tag (replace invalid characters with hyphens)
168
+ CLEAN_BRANCH_NAME=$(echo "$BRANCH_NAME" | sed 's/[^a-zA-Z0-9._-]/-/g' | sed 's/--*/-/g' | sed 's/^-\|-$//g')
169
+ UNIQUE_TAG="${CLEAN_BRANCH_NAME}-${TIMESTAMP}-${RUN_ID}"
170
echo "IMAGE_TAG=$UNIQUE_TAG" >> $GITHUB_ENV
171
echo "IMAGE_TAG=$UNIQUE_TAG" >> $GITHUB_OUTPUT
172
echo "Generated unique Docker tag: $UNIQUE_TAG"
0 commit comments