Skip to content

Commit

Permalink
refactor: Update CD workflow to include terraform plan output file
Browse files Browse the repository at this point in the history
  • Loading branch information
crinconpcln committed Sep 12, 2024
1 parent 47da667 commit 0c1d9c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ jobs:
run: terraform init
working-directory: ./infra
- name: Terraform Plan
run: terraform plan
id: plan
run: terraform plan -out=tfplan
working-directory: ./infra
env:
TF_VAR_environment: ${{ github.ref == 'refs/heads/main' && 'production' || 'development' }}
Expand Down

0 comments on commit 0c1d9c2

Please sign in to comment.