mirror of
https://gitlab.sarex.io/infra/terraform-contour-mirror.git
synced 2026-08-08 21:21:34 +03:00
++ clear stale terragrunt-cache before each run
This commit is contained in:
parent
044a0f7adf
commit
1d411af014
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user