Skip to content

Commit 8414e5f

Browse files
committed
swap back
1 parent 5c415b6 commit 8414e5f

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ jobs:
1313
terraform:
1414
name: Terrform-Deploy
1515
runs-on: ubuntu-latest
16-
defaults:
17-
run:
18-
working-directory: "./2-Terraform-AZURE-Services-Creation/4-aks"
1916
permissions:
2017
contents: write
2118
id-token: write # Required for OIDC
@@ -41,16 +38,6 @@ jobs:
4138
terraform_version: 1.11.0
4239
terraform_wrapper: true
4340

44-
- name: List directories for debugging
45-
run: |
46-
pwd
47-
# ls -l
48-
# # ls -l ./2-Terraform-AZURE-Services-Creation/1-resource_groups
49-
# # ls -l ./2-Terraform-AZURE-Services-Creation/2-container_registry
50-
# # ls -l ./2-Terraform-AZURE-Services-Creation/3-key_vault
51-
# ls -l ./2-Terraform-AZURE-Services-Creation/4-aks
52-
53-
5441
- name: Render terraform docs and push changes back to PR
5542
uses: terraform-docs/gh-actions@main
5643
with:
@@ -61,10 +48,12 @@ jobs:
6148

6249
- name: Terraform Init
6350
run: terraform init
51+
working-directory: ./2-Terraform-AZURE-Services-Creation/4-aks
6452

6553
- name: Terraform Format
6654
if: github.event_name == 'pull_request'
6755
run: terraform fmt
56+
working-directory: ./2-Terraform-AZURE-Services-Creation/4-aks
6857

6958
- name: Auto Commit Changes
7059
uses: stefanzweifel/git-auto-commit-action@v5
@@ -76,9 +65,11 @@ jobs:
7665

7766
- name: Terraform Plan
7867
run: terraform plan -no-color -input=false
68+
working-directory: ./2-Terraform-AZURE-Services-Creation/4-aks
7969
env:
8070
DEPLOYMENT_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
8171

8272
- name: Terraform Apply
8373
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
84-
run: terraform apply -auto-approve -input=false
74+
run: terraform apply -auto-approve -input=false
75+
working-directory: ./2-Terraform-AZURE-Services-Creation/4-aks

0 commit comments

Comments
 (0)