Update .gitlab-ci.yml

This commit is contained in:
2022-11-04 23:47:07 +00:00
parent f845be733f
commit 7a9cb05368

View File

@@ -15,9 +15,6 @@ plan:
ARGUMENTS: -var=pm_password=$pm_password -var=pm_api_url=$pm_api_url -var-file=terraform.tfvars ARGUMENTS: -var=pm_password=$pm_password -var=pm_api_url=$pm_api_url -var-file=terraform.tfvars
allow_failure: false allow_failure: false
extends: .terraform_plan extends: .terraform_plan
only:
changes:
- terraform/*
rules: rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event" - if: $CI_PIPELINE_SOURCE == "merge_request_event"
@@ -33,6 +30,10 @@ apply:
- terraform/* - terraform/*
rules: rules:
- if: '$CI_COMMIT_BRANCH == "main"' - if: '$CI_COMMIT_BRANCH == "main"'
changes:
compare_to: refs/heads/main
paths:
- '/terraform/*'
#apply: #apply: