Skip to content

Commit 3b37911

Browse files
committed
Run CI on pull for 'matser'/'edge' only and on merge request.
It simplify detection of the target branch.
1 parent 75c0078 commit 3b37911

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.gitlab-ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ build_and_test:
1515
- mem:16
1616
stage: build_and_test
1717
interruptible: true
18+
rules:
19+
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
20+
- if: $CI_COMMIT_BRANCH == 'master' && $CI_COMMIT_TITLE =~ /Merge branch.*/
21+
- if: $CI_COMMIT_BRANCH == 'edge' && $CI_COMMIT_TITLE =~ /Merge branch.*/
1822
script:
1923
- . ~/.aws_container_credentials
2024
- export PATH=/it/e3/bin:$PATH

0 commit comments

Comments
 (0)