MON-293 add terraform validate to pipeline
This commit is contained in:
parent
8342a6d9d8
commit
9cccfe2dea
@ -4,4 +4,12 @@ set -xueo pipefail
|
|||||||
source "$(dirname $0)/utils.sh"
|
source "$(dirname $0)/utils.sh"
|
||||||
goto_root
|
goto_root
|
||||||
|
|
||||||
|
for path in $(find "$(get_scope $1)" -path ./testing -prune -o -path ./incubator -prune -o -name 'inputs.tf' -print); do
|
||||||
|
cd $(dirname ${path})
|
||||||
|
echo $path
|
||||||
|
terraform init
|
||||||
|
terraform validate --check-variables=false
|
||||||
|
cd -
|
||||||
|
done
|
||||||
|
|
||||||
terraform fmt
|
terraform fmt
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user