From 00b66269d04abfc655f6671a5ebf4c4c8e3a84ef Mon Sep 17 00:00:00 2001 From: j4y <36337+j4y@users.noreply.github.com> Date: Thu, 22 Jan 2026 23:21:44 -0500 Subject: [PATCH] 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. --- .github/workflows/deploy.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0c2bcb8..5758d1e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -42,18 +42,24 @@ jobs: - name: Update Terraform State and Providers uses: gruntwork-io/terragrunt-action@v3 + env: + TERRAGRUNT_DISABLE_COPY: true with: tg_dir: ${{ env.working_dir }} tg_command: init --upgrade - name: Terragrunt Plan uses: gruntwork-io/terragrunt-action@v3 + env: + TERRAGRUNT_DISABLE_COPY: true with: tg_dir: ${{ env.working_dir }} tg_command: plan - name: Terragrunt Apply uses: gruntwork-io/terragrunt-action@v3 + env: + TERRAGRUNT_DISABLE_COPY: true with: tg_dir: ${{ env.working_dir }} tg_command: apply