mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 09:20:12 +01:00
ci: only trigger the CI for release managers when pushing to staging branch
The release branch contains only what was on the staging branch first, so testing it again is a waste of resources. To do this, we split the rule into specifically "default branch" and "staging branch", and "release branch" gets dropped by virtue of no longer being caught by any rule. Cc: mesa-stable Reviewed-by: Martin Roukala <None> Reviewed-by: Dylan Baker <None> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33411>
This commit is contained in:
parent
271bc0727c
commit
7152f343d6
1 changed files with 5 additions and 1 deletions
|
|
@ -57,7 +57,11 @@ workflow:
|
||||||
# Note: 0 = infinity = gitlab's job `timeout:` applies, which is 1h
|
# Note: 0 = infinity = gitlab's job `timeout:` applies, which is 1h
|
||||||
BUILD_JOB_TIMEOUT_OVERRIDE: 0
|
BUILD_JOB_TIMEOUT_OVERRIDE: 0
|
||||||
# pipeline for direct pushes that bypassed the CI
|
# pipeline for direct pushes that bypassed the CI
|
||||||
- if: &is-direct-push $CI_PROJECT_NAMESPACE == "mesa" && $CI_PIPELINE_SOURCE == "push"
|
- if: &is-direct-push $CI_PROJECT_NAMESPACE == "mesa" && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
|
||||||
|
variables:
|
||||||
|
JOB_PRIORITY: 70
|
||||||
|
# pipeline for direct pushes from release maintainer
|
||||||
|
- if: &is-staging-push $CI_PROJECT_NAMESPACE == "mesa" && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_REF_NAME =~ /^staging\//
|
||||||
variables:
|
variables:
|
||||||
JOB_PRIORITY: 70
|
JOB_PRIORITY: 70
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue