Update .gitlab-ci.yml

This commit is contained in:
2022-11-04 23:55:31 +00:00
parent b70e10b4fd
commit 355a72fd6e

View File

@@ -16,7 +16,9 @@ plan:
allow_failure: false allow_failure: false
extends: .terraform_plan extends: .terraform_plan
rules: rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event" - if: $CI_PIPELINE_SOURCE == "merge_request_event"
- changes:
- 'terraform/*'
apply: apply:
stage: build stage: build
@@ -27,10 +29,8 @@ apply:
extends: .terraform_apply extends: .terraform_apply
rules: rules:
- if: '$CI_COMMIT_BRANCH == "main"' - if: '$CI_COMMIT_BRANCH == "main"'
changes: - changes:
compare_to: refs/heads/main - 'terraform/*'
paths:
- 'terraform/*'
#apply: #apply: