update terraform script
This commit is contained in:
1 parent
8892bf046d
commit
beddf4fba1
1 file changed
+4
-5
@@ -13,12 +13,11 @@ for dir in templates/*; do
|
|||||||
|
|
||||||
validate_${name}:
|
validate_${name}:
|
||||||
stage: validate
|
stage: validate
|
||||||
image: alpine:latest
|
image: hashicorp/terraform:1.12
|
||||||
before_script:
|
|
||||||
- apk add --no-cache terraform
|
|
||||||
script:
|
script:
|
||||||
- terraform -chdir=$dir init -backend=false
|
- cd $dir
|
||||||
- terraform -chdir=$dir validate
|
- init -backend=false
|
||||||
|
- validate
|
||||||
|
|
||||||
deploy_${name}:
|
deploy_${name}:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
|||||||
Reference in new issue
Block a user