Skip to content

Commit 09e15f9

Browse files
committed
fix: disable Terragrunt cache in GitHub Actions
Add TERRAGRUNT_DISABLE_COPY=true to init, plan, and apply steps in the deploy workflow to ensure Terraform runs in the module directory rather than the Terragrunt cache during CI.
1 parent a331fe9 commit 09e15f9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,24 @@ jobs:
4242

4343
- name: Update Terraform State and Providers
4444
uses: gruntwork-io/terragrunt-action@v3
45+
env:
46+
TERRAGRUNT_DISABLE_COPY: true
4547
with:
4648
tg_dir: ${{ env.working_dir }}
4749
tg_command: init --upgrade
4850

4951
- name: Terragrunt Plan
5052
uses: gruntwork-io/terragrunt-action@v3
53+
env:
54+
TERRAGRUNT_DISABLE_COPY: true
5155
with:
5256
tg_dir: ${{ env.working_dir }}
5357
tg_command: plan
5458

5559
- name: Terragrunt Apply
5660
uses: gruntwork-io/terragrunt-action@v3
61+
env:
62+
TERRAGRUNT_DISABLE_COPY: true
5763
with:
5864
tg_dir: ${{ env.working_dir }}
5965
tg_command: apply

0 commit comments

Comments
 (0)