Reorder cache file

This commit is contained in:
Julio Castillo 2023-04-23 01:19:22 +02:00
parent 0bc89d9942
commit 7dd30f104f
2 changed files with 9 additions and 13 deletions

View File

@ -52,11 +52,6 @@ runs:
name: lockfile
path: tools/lockfile
- shell: bash
run: |
ls -Ra tools/lockfile
cat tools/lockfile/.terraform.lock.hcl
- name: Cache Terraform
uses: actions/cache@v3
with:

View File

@ -41,12 +41,6 @@ jobs:
terraform_version: ${{ env.TERRAFORM_VERSION }}
terraform_wrapper: false
- name: Cache Terraform
uses: actions/cache@v3
with:
path: ${{ env.TF_PLUGIN_CACHE_DIR }}
key: ${{ runner.os }}-terraform-${{ hashFiles('tools/lockfile/.terraform.lock.hcl') }}
- shell: bash
run: |
echo 'plugin_cache_dir = "/home/runner/.terraform.d/plugin-cache"' | tee -a /home/runner/.terraformrc
@ -56,9 +50,16 @@ jobs:
cd tools/lockfile
terraform init
- shell: bash
- name: Cache Terraform
uses: actions/cache@v3
with:
path: ${{ env.TF_PLUGIN_CACHE_DIR }}
key: ${{ runner.os }}-terraform-${{ hashFiles('tools/lockfile/.terraform.lock.hcl') }}
- name: tf provider cache content
shell: bash
run: |
cat tools/lockfile/.terraform.lock.hcl
ls -Ra /home/runner/.terraform.d/plugin-cache
- uses: actions/upload-artifact@v3
with: