Commit fb2c1d72 authored by Willian Paixao's avatar Willian Paixao

Adding terraform fmt to the Terraform template

Fix https://gitlab.com/gitlab-org/gitlab/-/issues/339935

Changelog: added
parent 594668ce
......@@ -16,6 +16,9 @@ stages:
init:
extends: .terraform:init
fmt:
extends: .terraform:fmt
validate:
extends: .terraform:validate
......
......@@ -28,6 +28,14 @@ cache:
- cd ${TF_ROOT}
- 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
stage: validate
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