1
0
Fork 0

ci: add before_script: tfenv install and cache .tfenv dir

This commit is contained in:
Vojtěch Mareš 2024-01-23 16:05:46 +01:00
parent cab6fe0052
commit 0ec6358fd0
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

@ -1,9 +1,10 @@
default: default:
image: ghcr.io/vojtechmares/container-images/tfenv:latest image: ghcr.io/vojtechmares/container-images/tfenv:latest
cache: cache:
key: dot-terraform key: terraform
paths: paths:
- .terraform - .terraform
- .tfenv
stages: stages:
- init - init
@ -18,6 +19,8 @@ variables:
init: init:
stage: init stage: init
before_script:
- tfenv install
script: script:
- terraform init - terraform init