Commit 6ab589af authored by Marcel Amirault's avatar Marcel Amirault

Merge branch 'add-terraform-fmt' into 'master'

Adding terraform fmt to the Terraform template

See merge request gitlab-org/gitlab!69470
parents fbfc2404 fb2c1d72
...@@ -16,6 +16,9 @@ stages: ...@@ -16,6 +16,9 @@ stages:
init: init:
extends: .terraform:init extends: .terraform:init
fmt:
extends: .terraform:fmt
validate: validate:
extends: .terraform:validate extends: .terraform:validate
......
...@@ -28,6 +28,14 @@ cache: ...@@ -28,6 +28,14 @@ cache:
- cd ${TF_ROOT} - cd ${TF_ROOT}
- gitlab-terraform init - gitlab-terraform init
.terraform:fmt: &terraform_fmt
stage: validate
needs: []
script:
- cd ${TF_ROOT}
- gitlab-terraform fmt -check -recursive
allow_failure: true
.terraform:validate: &terraform_validate .terraform:validate: &terraform_validate
stage: validate stage: validate
script: script:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment