diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 54b96c6..ab1b000 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,8 +9,7 @@ include: file: - 'terraform.yml' - 'ansible.yml' - - + plan: stage: lint variables: @@ -18,10 +17,13 @@ plan: ARGUMENTS: -var=pm_password=$pm_password -var=pm_api_url=$pm_api_url -var-file=terraform.tfvars allow_failure: false extends: .terraform_plan - rules: - - if: $CI_PIPELINE_SOURCE == "merge_request_event" - - changes: - - 'terraform/*' + rules: + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + changes: + compare_to: refs/heads/main + paths: + - 'terraform/*' + when: always - when: never k3s: