diff options
author | Steve Abrams <sabrams@gitlab.com> | 2023-01-09 20:41:32 +0300 |
---|---|---|
committer | Steve Abrams <sabrams@gitlab.com> | 2023-01-09 22:07:18 +0300 |
commit | 08941272449189a396f37a499bf9ad70c5f5f62e (patch) | |
tree | ade1e02d4c974358b794e6b738bccaf5ac2eb0e7 /.gitlab-ci.yml | |
parent | 58a976f3ecd108b5841a246e4b86712ca1b86dc5 (diff) |
ci: Run pipeline on merge commits to stable branches
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 061d73052..3283a2048 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -39,7 +39,6 @@ variables: TEST_UID: 9999 include: - - template: Workflows/MergeRequest-Pipelines.gitlab-ci.yml - template: Security/License-Scanning.gitlab-ci.yml - template: Security/SAST.gitlab-ci.yml - template: Security/Dependency-Scanning.gitlab-ci.yml @@ -48,6 +47,13 @@ include: file: - '/ci/danger-review.yml' +workflow: + rules: + - if: $CI_MERGE_REQUEST_IID + - if: $CI_COMMIT_TAG + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + - if: '$CI_COMMIT_BRANCH =~ /^[\d-]+-stable$/' + .cache_deps: cache: &cache_deps_configuration key: |