File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 4242 - uses : hashicorp/setup-terraform@v2
4343
4444 - name : Terraform init
45- run : terraform -chdir=infra init
45+ run : terraform -chdir=infra/azure init
4646
4747 # NEW · Import RG if it already exists
4848 - name : Import existing resource-group (if any)
5252 set -e
5353 if az group show --name "$RG_NAME" &>/dev/null; then
5454 echo "Resource-group $RG_NAME exists – importing into state"
55- terraform -chdir=infra import \
55+ terraform -chdir=infra/azure import \
5656 azurerm_resource_group.this \
5757 "/subscriptions/${ARM_SUBSCRIPTION_ID}/resourceGroups/$RG_NAME" \
5858 || true # ignore if already in state
6262
6363 - name : Terraform apply
6464 run : |
65- terraform -chdir=infra apply -auto-approve \
65+ terraform -chdir=infra/azure apply -auto-approve \
6666 -var="subscription_id=${{ env.ARM_SUBSCRIPTION_ID }}" \
6767 -var="location=germanywestcentral" \
6868 -var="environment=${{ env.ENVIRONMENT }}" \
You can’t perform that action at this time.
0 commit comments