CI: add new workflow rules

Required for pipelines to run after some infrastructure changes, see
https://gitlab.freedesktop.org/freedesktop/freedesktop/-/issues/438

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2023-03-15 09:28:12 +10:00
parent da58d59b99
commit f1e93b5159
2 changed files with 10 additions and 0 deletions

View file

@ -54,6 +54,11 @@ include:
# Ubuntu container builder template
- '/templates/ubuntu.yml'
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- if: $CI_PIPELINE_SOURCE == 'push'
stages:
- sanity check # CI/commit checks
- prep # prep work like rebuilding the container images if there is a change

View file

@ -48,6 +48,11 @@ include:
- '/templates/{{distro.name}}.yml'
{% endfor %}
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- if: $CI_PIPELINE_SOURCE == 'push'
stages:
- sanity check # CI/commit checks
- prep # prep work like rebuilding the container images if there is a change