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}:
|
||||
stage: validate
|
||||
image: alpine:latest
|
||||
before_script:
|
||||
- apk add --no-cache terraform
|
||||
image: hashicorp/terraform:1.12
|
||||
script:
|
||||
- terraform -chdir=$dir init -backend=false
|
||||
- terraform -chdir=$dir validate
|
||||
- cd $dir
|
||||
- init -backend=false
|
||||
- validate
|
||||
|
||||
deploy_${name}:
|
||||
stage: deploy
|
||||
|
||||
Reference in new issue
Block a user