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