mirror of
https://github.com/ghndrx/k8s-game-2048.git
synced 2026-02-10 14:54:59 +00:00
feat: improve pipeline architecture with proper dependencies
- Deploy-dev now depends on build completion (no race conditions) - Remove duplicate build logic from deploy-dev workflow - Use commit-specific image tags for reliable deployments - Deploy workflows now wait for build to complete before deploying - Consistent image tagging across all environments (branch-commit) - Eliminates race conditions between build and deploy Pipeline flow: push → build → deploy → test → promote
This commit is contained in:
2
.github/workflows/deploy-prod.yml
vendored
2
.github/workflows/deploy-prod.yml
vendored
@@ -41,7 +41,7 @@ jobs:
|
||||
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
|
||||
IMAGE_TAG="${{ github.event.inputs.image_tag || 'latest' }}"
|
||||
else
|
||||
# For auto-promotion, use the latest successful build
|
||||
# For production deployment, use the main branch commit tag
|
||||
IMAGE_TAG="main-$(echo "${{ github.sha }}" | cut -c1-7)"
|
||||
fi
|
||||
echo "IMAGE_TAG=$IMAGE_TAG" >> $GITHUB_ENV
|
||||
|
||||
Reference in New Issue
Block a user