++ clear stale terragrunt-cache before each run
Some checks failed
Terraform Terragrunt (contour) / validate (push) Failing after 24s
Terraform Terragrunt (contour) / plan (push) Has been skipped
Terraform Terragrunt (contour) / apply (push) Has been skipped

This commit is contained in:
Kochetkov S 2026-08-07 12:20:54 +03:00
parent 044a0f7adf
commit 1d411af014

View File

@ -98,6 +98,12 @@ jobs:
- name: Configure module registry auth
run: |
git config --global url."https://gitlab-module-pull:${GITLAB_MODULE_TOKEN}@gitlab.sarex.io/".insteadOf "ssh://git@gitlab.sarex.io/"
- name: Clear stale terragrunt cache
# .terragrunt-cache is gitignored - a persistent workspace/runner never
# gets it cleaned by checkout, so a stale generated provider.tf can
# survive across runs even after terragrunt.hcl changes upstream.
run: |
find live -type d -name '.terragrunt-cache' -prune -exec rm -rf {} \;
- name: Decrypt secret values
# SOPS_AGE_KEY only reaches this step, not the whole job - the rest
# (checkout, kubeconfig, terragrunt run) never sees it.
@ -159,6 +165,12 @@ jobs:
- name: Configure module registry auth
run: |
git config --global url."https://gitlab-module-pull:${GITLAB_MODULE_TOKEN}@gitlab.sarex.io/".insteadOf "ssh://git@gitlab.sarex.io/"
- name: Clear stale terragrunt cache
# .terragrunt-cache is gitignored - a persistent workspace/runner never
# gets it cleaned by checkout, so a stale generated provider.tf can
# survive across runs even after terragrunt.hcl changes upstream.
run: |
find live -type d -name '.terragrunt-cache' -prune -exec rm -rf {} \;
- name: Decrypt secret values
# SOPS_AGE_KEY only reaches this step, not the whole job - the rest
# (checkout, kubeconfig, terragrunt run) never sees it.
@ -221,6 +233,12 @@ jobs:
- name: Configure module registry auth
run: |
git config --global url."https://gitlab-module-pull:${GITLAB_MODULE_TOKEN}@gitlab.sarex.io/".insteadOf "ssh://git@gitlab.sarex.io/"
- name: Clear stale terragrunt cache
# .terragrunt-cache is gitignored - a persistent workspace/runner never
# gets it cleaned by checkout, so a stale generated provider.tf can
# survive across runs even after terragrunt.hcl changes upstream.
run: |
find live -type d -name '.terragrunt-cache' -prune -exec rm -rf {} \;
- name: Decrypt secret values
# SOPS_AGE_KEY only reaches this step, not the whole job - the rest
# (checkout, kubeconfig, terragrunt run) never sees it.