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
extends: .terraform_plan
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- changes:
- 'terraform/*'
apply:
stage: build
@@ -27,10 +29,8 @@ apply:
extends: .terraform_apply
rules:
- if: '$CI_COMMIT_BRANCH == "main"'
changes:
compare_to: refs/heads/main
paths:
- 'terraform/*'
- changes:
- 'terraform/*'
#apply: