summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2024-02-21 09:39:57 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2024-02-21 09:39:57 +1000
commit893788c14a36a7a524659652f0f41439b583bd3d (patch)
treed08f357db1662343232819a0de1bf2d111c36867
parent39a5f8e67615f443e76146769d5f5f9abc5ebd2f (diff)
CI: add workflow rules
Required for pipelines to run after some infrastructure changes, see https://gitlab.freedesktop.org/freedesktop/freedesktop/-/issues/540
-rw-r--r--.gitlab-ci.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index eb5cbbf..183c5e2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -17,6 +17,10 @@ include:
file: '/templates/ci-fairy.yml'
- template: Security/SAST.gitlab-ci.yml
+workflow:
+ rules:
+ - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
+ - if: $CI_PIPELINE_SOURCE == 'push'
stages:
- prep # prep work like rebuilding the container images if there is a change