ci: Fix pre-merge pipelines with no code changes

Make sure we don't end up with manual container jobs in MR pipelines,
because they'll never start. This cleans up the container and build
rules so always 'do the right thing' on MRs (container+build if
required, nothing if not) and user branches (all manual).

Signed-off-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25219>
This commit is contained in:
Daniel Stone
2023-09-14 11:47:40 +01:00
committed by Marge Bot
parent b1a63d5418
commit 7521dbae60

View File

@@ -176,7 +176,14 @@ include:
- include/**/*
- src/**/*
when: on_success
# Otherwise, build/test jobs won't run because no rule matched.
# Just skip everything for MRs which don't actually change anything in the
# build
- if: *is-pre-merge-for-marge
when: never
- if: *is-post-merge
when: never
# Always allow user branches etc to trigger jobs manually
- when: manual
.ci-deqp-artifacts:
@@ -214,9 +221,14 @@ include:
changes:
*all_paths
when: on_success
# Allow triggering jobs manually in other cases
# Just skip everything for MRs which don't actually change anything in the
# build - the same rules as above, but without the file-change rules
- if: *is-pre-merge-for-marge
when: never
- if: *is-post-merge
when: never
# Always allow user branches etc to trigger jobs manually
- when: manual
# Otherwise, container jobs won't run because no rule matched.
# Git archive