Skip to content

Commit eb491c6

Browse files
committed
chore: update backend var
1 parent 619db50 commit eb491c6

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/deploy_azure_infra.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,18 @@ jobs:
3232
with:
3333
creds: '{"clientId":"${{ secrets.ARM_CLIENT_ID }}", "clientSecret":"${{ secrets.ARM_CLIENT_SECRET }}", "subscriptionId":"${{ secrets.ARM_SUBSCRIPTION_ID }}", "tenantId":"${{ secrets.ARM_TENANT_ID }}"}'
3434

35-
- name: "Terraform init"
35+
- name: Terraform init
3636
run : |
3737
pwd
3838
terraform init -backend-config="dev-backend-config"
3939
40+
- name: Terraform Plan
41+
run: |
42+
terraform plan -var-file="dev.tfvars" -out="tfplan.out"
43+
4044
- name: Terraform Apply
4145
if: github.event_name == 'push'
42-
run: terraform apply -var-file="dev.tfvars -auto-approve tfplan
46+
run: terraform apply -auto-approve "tfplan.out"
4347

4448
- name: Terraform destroy plan
4549
if: github.event.inputs.confirm == 'yes'

create-azure-infra/variables.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,4 @@ variable "GITHUB_APP_CLIENTID" {
6565
description = "inject github app client ID from env variable"
6666
type = string
6767
}
68+

0 commit comments

Comments
 (0)