fix: Production workflow optimization
All checks were successful
Deploy to Staging / Build Images (push) Successful in 21s
Deploy to Staging / Deploy to Staging (push) Successful in 27s
Deploy to Staging / Verify Staging (push) Successful in 6s
Deploy to Staging / Notify Staging Ready (push) Successful in 6s
Deploy to Staging / Notify Staging Failure (push) Has been skipped
All checks were successful
Deploy to Staging / Build Images (push) Successful in 21s
Deploy to Staging / Deploy to Staging (push) Successful in 27s
Deploy to Staging / Verify Staging (push) Successful in 6s
Deploy to Staging / Notify Staging Ready (push) Successful in 6s
Deploy to Staging / Notify Staging Failure (push) Has been skipped
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
# MotoVaultPro Production Deployment Workflow
|
||||
# Manual trigger only - run after verifying staging
|
||||
# Blue-green deployment with auto-rollback
|
||||
#
|
||||
# Optimization: Uses sparse checkout (scripts/ only) + shallow clone
|
||||
# since all scripts run from $DEPLOY_PATH on the production server
|
||||
|
||||
name: Deploy to Production
|
||||
run-name: Production Deploy - ${{ inputs.image_tag || 'latest' }}
|
||||
@@ -81,8 +84,12 @@ jobs:
|
||||
BACKEND_IMAGE: ${{ needs.validate.outputs.backend_image }}
|
||||
FRONTEND_IMAGE: ${{ needs.validate.outputs.frontend_image }}
|
||||
steps:
|
||||
- name: Checkout code
|
||||
- name: Checkout scripts only
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: scripts/
|
||||
sparse-checkout-cone-mode: true
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Login to registry
|
||||
run: |
|
||||
@@ -200,8 +207,12 @@ jobs:
|
||||
needs: [validate, deploy-prod, verify-prod]
|
||||
if: failure()
|
||||
steps:
|
||||
- name: Checkout code
|
||||
- name: Checkout scripts only
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: scripts/
|
||||
sparse-checkout-cone-mode: true
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Execute rollback
|
||||
run: |
|
||||
@@ -226,8 +237,12 @@ jobs:
|
||||
needs: [validate, verify-prod]
|
||||
if: success()
|
||||
steps:
|
||||
- name: Checkout code
|
||||
- name: Checkout scripts only
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: scripts/
|
||||
sparse-checkout-cone-mode: true
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Send success notification
|
||||
run: |
|
||||
@@ -247,8 +262,12 @@ jobs:
|
||||
needs: [validate, deploy-prod, verify-prod, rollback]
|
||||
if: failure()
|
||||
steps:
|
||||
- name: Checkout code
|
||||
- name: Checkout scripts only
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: scripts/
|
||||
sparse-checkout-cone-mode: true
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Send failure notification
|
||||
run: |
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
- ca-certificates
|
||||
- gnupg
|
||||
- jq
|
||||
- nodejs
|
||||
state: present
|
||||
|
||||
# ============================================
|
||||
@@ -48,6 +48,7 @@
|
||||
- ca-certificates
|
||||
- gnupg
|
||||
- jq
|
||||
- nodejs
|
||||
state: present
|
||||
|
||||
# ============================================
|
||||
Reference in New Issue
Block a user