Commit ca7f62bf authored by Shinya Maeda's avatar Shinya Maeda

Merge branch 'terraform-0.14-cache' into 'master'

Add .terraform.lock.hcl to terraform template in order to support terraform 0.14

See merge request gitlab-org/gitlab!50647
parents 84f1e4fd 008b3bcc
---
title: Update Terraform Pipline templaes to support 0.14 lockfile cache
merge_request: 50647
author: Aurelian Shuttleworth
type: fixed
......@@ -17,6 +17,7 @@ variables:
cache:
paths:
- .terraform
- .terraform.lock.hcl
before_script:
- alias convert_report="jq -r '([.resource_changes[]?.change.actions?]|flatten)|{\"create\":(map(select(.==\"create\"))|length),\"update\":(map(select(.==\"update\"))|length),\"delete\":(map(select(.==\"delete\"))|length)}'"
......
......@@ -19,6 +19,7 @@ cache:
key: "${TF_ROOT}"
paths:
- ${TF_ROOT}/.terraform/
- ${TF_ROOT}/.terraform.lock.hcl
.init: &init
stage: init
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment