Skip to content

Commit

Permalink
Update infrastructure pipeline to use stag-cd instead of stage
Browse files Browse the repository at this point in the history
  • Loading branch information
aloftus23 committed Nov 13, 2024
1 parent be8b5e2 commit c07443f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/infrastructure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
sudo mv terraform /usr/local/bin
- name: Terraform init
run: terraform init -backend-config=stage.config
run: terraform init -backend-config=stage-cd.config
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand All @@ -62,20 +62,20 @@ jobs:
run: terraform validate

- name: Terraform plan
run: terraform plan -var-file=stage.tfvars -out stage.plan
run: terraform plan -var-file=stage-cd.tfvars -out stage-cd.plan
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- name: Terraform apply
if: github.ref == 'refs/heads/develop'
run: terraform apply stage.plan
run: terraform apply stage-cd.plan
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- if: ${{ always() }}
run: rm stage.plan || true
run: rm stage-cd.plan || true

integration:
timeout-minutes: 4320
Expand Down

0 comments on commit c07443f

Please sign in to comment.