Skip to content

Commit

Permalink
Add approval step
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerHendrickson committed Sep 26, 2023
1 parent 31b5085 commit ca84da6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,21 @@ jobs:
tf-validate-outcome: ${{ needs.tf-plan.outputs.validate-outcome }}
tf-validate-output: ${{ needs.tf-plan.outputs.validate-output }}

approve-tf-apply:
name: Review and Approve Deployment
needs:
- tf-plan
if: needs.tf-plan.outputs.plan-exitcode == 2
runs-on: ubuntu-latest
environment: production

tf-apply:
name: Deploy to Production
needs:
- build-lambdas
- aws-auth
- tf-plan
- approve-tf-apply
if: needs.tf-plan.outputs.plan-exitcode == 2
uses: ./.github/workflows/terraform-apply.yml
with:
Expand Down

0 comments on commit ca84da6

Please sign in to comment.