Update .gitlab-ci.yml
This commit is contained in:
@@ -10,6 +10,21 @@ include:
|
|||||||
- 'terraform.yml'
|
- 'terraform.yml'
|
||||||
- 'ansible.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:
|
plan:
|
||||||
stage: lint
|
stage: lint
|
||||||
variables:
|
variables:
|
||||||
|
|||||||
Reference in New Issue
Block a user