mirror of
https://gitlab.sarex.io/infra/terraform-contour-mirror.git
synced 2026-08-09 05:21:36 +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
|
- name: Configure module registry auth
|
||||||
run: |
|
run: |
|
||||||
git config --global url."https://gitlab-module-pull:${GITLAB_MODULE_TOKEN}@gitlab.sarex.io/".insteadOf "ssh://git@gitlab.sarex.io/"
|
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
|
- name: Decrypt secret values
|
||||||
# SOPS_AGE_KEY only reaches this step, not the whole job - the rest
|
# SOPS_AGE_KEY only reaches this step, not the whole job - the rest
|
||||||
# (checkout, kubeconfig, terragrunt run) never sees it.
|
# (checkout, kubeconfig, terragrunt run) never sees it.
|
||||||
@ -159,6 +165,12 @@ jobs:
|
|||||||
- name: Configure module registry auth
|
- name: Configure module registry auth
|
||||||
run: |
|
run: |
|
||||||
git config --global url."https://gitlab-module-pull:${GITLAB_MODULE_TOKEN}@gitlab.sarex.io/".insteadOf "ssh://git@gitlab.sarex.io/"
|
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
|
- name: Decrypt secret values
|
||||||
# SOPS_AGE_KEY only reaches this step, not the whole job - the rest
|
# SOPS_AGE_KEY only reaches this step, not the whole job - the rest
|
||||||
# (checkout, kubeconfig, terragrunt run) never sees it.
|
# (checkout, kubeconfig, terragrunt run) never sees it.
|
||||||
@ -221,6 +233,12 @@ jobs:
|
|||||||
- name: Configure module registry auth
|
- name: Configure module registry auth
|
||||||
run: |
|
run: |
|
||||||
git config --global url."https://gitlab-module-pull:${GITLAB_MODULE_TOKEN}@gitlab.sarex.io/".insteadOf "ssh://git@gitlab.sarex.io/"
|
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
|
- name: Decrypt secret values
|
||||||
# SOPS_AGE_KEY only reaches this step, not the whole job - the rest
|
# SOPS_AGE_KEY only reaches this step, not the whole job - the rest
|
||||||
# (checkout, kubeconfig, terragrunt run) never sees it.
|
# (checkout, kubeconfig, terragrunt run) never sees it.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user