Skip to content

Commit 166d7da

Browse files
committed
CHanged wrong paths
1 parent a7be870 commit 166d7da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/deploy-azure.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
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)
@@ -52,7 +52,7 @@ jobs:
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
@@ -62,7 +62,7 @@ jobs:
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 }}" \

0 commit comments

Comments
 (0)