Skip to content

Commit 113f062

Browse files
Refactor unique tag generation in deploy workflow
Simplified unique tag generation for manual deployments.
1 parent 7a830bf commit 113f062

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

.github/workflows/deploy-unified.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,7 @@ jobs:
163163
# Generate unique tag for manual deployment runs
164164
TIMESTAMP=$(date +%Y%m%d-%H%M%S)
165165
RUN_ID="${{ github.run_id }}"
166-
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}"
166+
UNIQUE_TAG="manual-${TIMESTAMP}-${RUN_ID}"
170167
echo "IMAGE_TAG=$UNIQUE_TAG" >> $GITHUB_ENV
171168
echo "IMAGE_TAG=$UNIQUE_TAG" >> $GITHUB_OUTPUT
172169
echo "Generated unique Docker tag: $UNIQUE_TAG"

0 commit comments

Comments
 (0)