Skip to content

Commit

Permalink
RUn plan before apply
Browse files Browse the repository at this point in the history
  • Loading branch information
russdaygh committed Apr 23, 2024
1 parent 6e1f52f commit 674ef12
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/DeployEverything.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,16 @@ jobs:
app-id: ${{ secrets.TERRAFORM_DEPLOYER_APP_ID }}
private-key: ${{ secrets.TERRAFORM_DEPLOYER_PRIVATE_KEY }}
- uses: actions/checkout@v4
- name: Setup terraform
uses: hashicorp/setup-terraform@v3
- run: terraform init
- name: Log in with Azure
uses: azure/login@v1
with:
creds: '${{ secrets.AZURE_CREDENTIALS }}'
- run: terraform apply -auto-approve --var-file ../tfvars/${{ inputs.env }}.tfvars
- name: Setup terraform
uses: hashicorp/setup-terraform@v3
- run: |
terraform init
terraform plan --var-file ../tfvars/${{ inputs.env }}.tfvars
terraform apply -auto-approve --var-file ../tfvars/${{ inputs.env }}.tfvars
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
Expand Down

0 comments on commit 674ef12

Please sign in to comment.