|
28 | 28 | contents: write |
29 | 29 | env: |
30 | 30 | DEPLOYMENT_EVENT_IDENT: users-api-deployment-${{ inputs.environment }}-${{ github.sha }}-${{ github.run_id }}-${{ github.run_number }} |
31 | | - IS_MVP_DEPLOYMENT: ${{ startsWith(inputs.environment, 'mvp-') }} |
| 31 | + IS_MVP_PRODUCTION_LIKE_DEPLOYMENT: ${{ startsWith(inputs.environment, 'mvp-') && inputs.environment != 'mpv-dev' }} |
32 | 32 | steps: |
33 | 33 | - uses: actions/setup-dotnet@v3 |
34 | 34 | with: |
@@ -78,19 +78,19 @@ jobs: |
78 | 78 | fi |
79 | 79 | fi |
80 | 80 | - name: Create database backup snapshot on PRE-deployment |
81 | | - if: ${{ steps.deployment-database-events.outputs.Migrations == 'true' && !env.IS_MVP_DEPLOYMENT }} |
| 81 | + if: ${{ steps.deployment-database-events.outputs.Migrations == 'true' && !env.IS_MVP_PRODUCTION_LIKE_DEPLOYMENT }} |
82 | 82 | run: | |
83 | 83 | aws rds create-db-snapshot --db-instance-identifier ${{ steps.get-pulumi-outputs.outputs.DBIdentifier }} --db-snapshot-identifier PRE-${{ env.DEPLOYMENT_EVENT_IDENT }} |
84 | 84 | - name: Wait for the database snapshot to be ready |
85 | | - if: ${{ steps.deployment-database-events.outputs.Migrations == 'true' && !env.IS_MVP_DEPLOYMENT}} |
| 85 | + if: ${{ steps.deployment-database-events.outputs.Migrations == 'true' && !env.IS_MVP_PRODUCTION_LIKE_DEPLOYMENT}} |
86 | 86 | run: | |
87 | 87 | aws rds wait db-snapshot-available --db-snapshot-identifier PRE-${{ env.DEPLOYMENT_EVENT_IDENT }} |
88 | 88 | - name: Create database backup snapshot on PRE-deployment |
89 | | - if: ${{ steps.deployment-database-events.outputs.Migrations == 'true' && env.IS_MVP_DEPLOYMENT }} |
| 89 | + if: ${{ steps.deployment-database-events.outputs.Migrations == 'true' && env.IS_MVP_PRODUCTION_LIKE_DEPLOYMENT }} |
90 | 90 | run: | |
91 | 91 | aws rds create-db-cluster-snapshot --db-cluster-identifier ${{ steps.get-pulumi-outputs.outputs.DBClusterIdentifier }} --db-cluster-snapshot-identifier PRE-${{ env.DEPLOYMENT_EVENT_IDENT }} |
92 | 92 | - name: Wait for the database snapshot to be ready |
93 | | - if: ${{ steps.deployment-database-events.outputs.Migrations == 'true' && env.IS_MVP_DEPLOYMENT }} |
| 93 | + if: ${{ steps.deployment-database-events.outputs.Migrations == 'true' && env.IS_MVP_PRODUCTION_LIKE_DEPLOYMENT }} |
94 | 94 | run: | |
95 | 95 | aws rds wait db-cluster-snapshot-available --db-cluster-snapshot-identifier PRE-${{ env.DEPLOYMENT_EVENT_IDENT }} |
96 | 96 | - name: Deploy with Pulumi |
|
0 commit comments