From 0ec6358fd0754e9b78152b5df00e7da3e253c258 Mon Sep 17 00:00:00 2001 From: Vojtech Mares Date: Tue, 23 Jan 2024 16:05:46 +0100 Subject: [PATCH] ci: add before_script: tfenv install and cache .tfenv dir --- .gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index da426a7..c928f8c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,9 +1,10 @@ default: image: ghcr.io/vojtechmares/container-images/tfenv:latest cache: - key: dot-terraform + key: terraform paths: - .terraform + - .tfenv stages: - init @@ -18,6 +19,8 @@ variables: init: stage: init + before_script: + - tfenv install script: - terraform init