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