troubleshoot

This commit is contained in:
Julio Castillo 2023-04-23 01:25:50 +02:00
parent 7dd30f104f
commit 3cd3106695
1 changed files with 9 additions and 3 deletions

View File

@ -43,9 +43,6 @@ jobs:
- shell: bash
run: |
echo 'plugin_cache_dir = "/home/runner/.terraform.d/plugin-cache"' | tee -a /home/runner/.terraformrc
echo 'disable_checkpoint = true' | tee -a /home/runner/.terraformrc
mkdir -p ${{ env.TF_PLUGIN_CACHE_DIR }}
cp default-versions.tf tools/lockfile
cd tools/lockfile
terraform init
@ -56,6 +53,15 @@ jobs:
path: ${{ env.TF_PLUGIN_CACHE_DIR }}
key: ${{ runner.os }}-terraform-${{ hashFiles('tools/lockfile/.terraform.lock.hcl') }}
- shell: bash
run: |
mkdir -p ${{ env.TF_PLUGIN_CACHE_DIR }}
echo 'plugin_cache_dir = "/home/runner/.terraform.d/plugin-cache"' | tee -a /home/runner/.terraformrc
echo 'disable_checkpoint = true' | tee -a /home/runner/.terraformrc
cd tools/lockfile
rm -rf .terraform*
terraform init
- name: tf provider cache content
shell: bash
run: |