diff --git a/.github/workflows/deploy-crisiscleanup-site.yml b/.github/workflows/deploy-crisiscleanup-site.yml index 47d4bd41..f4144101 100644 --- a/.github/workflows/deploy-crisiscleanup-site.yml +++ b/.github/workflows/deploy-crisiscleanup-site.yml @@ -189,6 +189,7 @@ jobs: echo -n "$targets" | xargs -r -d',' -t -n1 -P2 /bin/bash development-crisiscleanup-web-deploy: name: Deploy developmentcrisiscleanupweb9069437F + if: github.inputs == "development" permissions: contents: read id-token: write @@ -235,6 +236,7 @@ jobs: role-arn: arn:aws:iam::${{secrets.AWS_ACCOUNT_ID_DEVELOPMENT}}:role/cdk-hnb659fds-cfn-exec-role-${{secrets.AWS_ACCOUNT_ID_DEVELOPMENT}}-us-east-1 staging-crisiscleanup-web-deploy: name: Deploy stagingcrisiscleanupweb1118F9DE + if: github.inputs == "staging" permissions: contents: read id-token: write @@ -282,6 +284,7 @@ jobs: role-arn: arn:aws:iam::${{secrets.AWS_ACCOUNT_ID_STAGING}}:role/cdk-hnb659fds-cfn-exec-role-${{secrets.AWS_ACCOUNT_ID_STAGING}}-us-east-1 production-crisiscleanup-web-deploy: name: Deploy productioncrisiscleanupwebED01140D + if: github.inputs == "production" permissions: contents: read id-token: write diff --git a/packages/stacks/web/src/main.ts b/packages/stacks/web/src/main.ts index 21b5613a..1748d84d 100644 --- a/packages/stacks/web/src/main.ts +++ b/packages/stacks/web/src/main.ts @@ -151,6 +151,11 @@ pipeline.addStageWithGitHubOptions( }, }, ), + { + jobSettings: { + if: 'github.inputs == "development"', + }, + }, ) pipeline.addStageWithGitHubOptions( new CrisisCleanupWebStage( @@ -168,6 +173,11 @@ pipeline.addStageWithGitHubOptions( }, }, ), + { + jobSettings: { + if: 'github.inputs == "staging"', + }, + }, ) pipeline.addStageWithGitHubOptions( new CrisisCleanupWebStage( @@ -186,6 +196,11 @@ pipeline.addStageWithGitHubOptions( }, }, ), + { + jobSettings: { + if: 'github.inputs == "production"', + }, + }, ) app.synth()