Skip to content

Commit cdb3b6a

Browse files
committed
Apply terraform
1 parent 8b8f4ad commit cdb3b6a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@ jobs:
2020
client-id: ${{ secrets.AZURE_CLIENT_ID }}
2121
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
2222
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
23+
- name: Setup Terraform with specified version on the runner
24+
uses: hashicorp/setup-terraform@v3
25+
with:
26+
terraform_version: 1.8.3
27+
- name: Dump backend config
28+
run: echo "${{secrets.TF_BACKEND_CONFIG}}" > backend.hcl
29+
- name: Terraform init
30+
run: terraform init -backend-config=backend.hcl
31+
- name: Terraform apply
32+
run: terraform apply -auto-approve -var "create_vm=true" -var "create_app_service=true"
33+
2334
test:
2435
runs-on: ubuntu-latest
2536
steps:

0 commit comments

Comments
 (0)