Update .gitlab-ci.yml
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user