ci: add before_script: tfenv install and cache .tfenv dir
This commit is contained in:
parent
cab6fe0052
commit
0ec6358fd0
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue