From fc8f6ae53acf35e866808591946cd3acff538f7f Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Sat, 5 Nov 2022 13:06:46 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fa54d57..f6a63f0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,6 +10,21 @@ include: - 'terraform.yml' - 'ansible.yml' +format: + stage: lint + variables: + WORKDIR: $CI_PROJECT_DIR/terraform + allow_failure: false + extends: .terraform_fmt + #rules: + # - if: $CI_PIPELINE_SOURCE == "merge_request_event" + # changes: + # compare_to: refs/heads/main + # paths: + # - 'terraform/*' + # when: always + # - when: never + plan: stage: lint variables: