ci: move rules from rules-anchors to workflow
The workflow is almost self-contained except by two rules that are still in an old rules-anchors definition. So, we can keep all the rules in the same place. Signed-off-by: Sergi Blanch Torne <sergi.blanch.torne@collabora.com> Signed-off-by: Vignesh Raman <vignesh.raman@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31561>
This commit is contained in:
@@ -42,6 +42,10 @@ workflow:
|
|||||||
IS_MERGE_PIPELINE: 1
|
IS_MERGE_PIPELINE: 1
|
||||||
# post-merge pipeline
|
# post-merge pipeline
|
||||||
- if: &is-post-merge $GITLAB_USER_LOGIN == "marge-bot" && $CI_PIPELINE_SOURCE == "push"
|
- if: &is-post-merge $GITLAB_USER_LOGIN == "marge-bot" && $CI_PIPELINE_SOURCE == "push"
|
||||||
|
# Pre-merge pipeline
|
||||||
|
- if: &is-pre-merge $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||||
|
# Push to a branch on a fork
|
||||||
|
- if: &is-fork-push $CI_PROJECT_NAMESPACE != "mesa" && $CI_PIPELINE_SOURCE == "push"
|
||||||
# nightly pipeline
|
# nightly pipeline
|
||||||
- if: &is-scheduled-pipeline $CI_PIPELINE_SOURCE == "schedule"
|
- if: &is-scheduled-pipeline $CI_PIPELINE_SOURCE == "schedule"
|
||||||
# pipeline for direct pushes that bypassed the CI
|
# pipeline for direct pushes that bypassed the CI
|
||||||
@@ -184,15 +188,6 @@ include:
|
|||||||
- local: 'src/**/ci/gitlab-ci.yml'
|
- local: 'src/**/ci/gitlab-ci.yml'
|
||||||
|
|
||||||
|
|
||||||
# YAML anchors for rule conditions
|
|
||||||
# --------------------------------
|
|
||||||
.rules-anchors:
|
|
||||||
# Pre-merge pipeline
|
|
||||||
- &is-pre-merge '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
|
||||||
# Push to a branch on a fork
|
|
||||||
- &is-fork-push '$CI_PROJECT_NAMESPACE != "mesa" && $CI_PIPELINE_SOURCE == "push"'
|
|
||||||
|
|
||||||
|
|
||||||
# Rules applied to every job in the pipeline
|
# Rules applied to every job in the pipeline
|
||||||
.common-rules:
|
.common-rules:
|
||||||
rules:
|
rules:
|
||||||
|
Reference in New Issue
Block a user