Skip to content
Snippets Groups Projects
Verified Commit 999d91d7 authored by Lars Bilke's avatar Lars Bilke
Browse files

[ci] Disable for non-MR user-scoped pipelines.

parent fd387bde
No related branches found
No related tags found
No related merge requests found
......@@ -21,8 +21,16 @@ variables:
BUILD_TESTS: "true"
BUILD_CTEST: "true"
workflow:
rules:
# Disable CI for non-MR user-scoped pipelines
- if: '$CI_MERGE_REQUEST_IID == null && $CI_PROJECT_NAMESPACE != "ogs"'
when: never
- if: $CI_MERGE_REQUEST_IID # merge requests
- if: $CI_COMMIT_TAG # tags, ogs/ogs repo only
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # master, ogs/ogs repo only
include:
- template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml'
- template: 'Code-Quality.gitlab-ci.yml'
# extends
- local: '/scripts/ci/extends/defaults.yml'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment