print lockfiles

This commit is contained in:
Julio Castillo 2023-04-23 00:58:58 +02:00
parent 1b4e8eb305
commit 89fe36b4f4
2 changed files with 10 additions and 0 deletions

View File

@ -51,6 +51,10 @@ runs:
with:
name: lockfile
- shell: bash
run: |
cat tools/lockfile/.terraform.lock.hcl
- name: Cache Terraform
uses: actions/cache@v3
with:

View File

@ -49,11 +49,17 @@ 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
- shell: bash
run: |
cat tools/lockfile/.terraform.lock.hcl
- uses: actions/upload-artifact@v3
with:
name: lockfile