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