From 917c2ea204ab03250cd6e022a7de1e51652ac420 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 3 Sep 2024 13:49:04 +1000 Subject: [PATCH] gitlab CI: set the standard workflow rules for an fdo project --- .gitlab-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0ef70e0..b51eb52 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,6 +18,14 @@ include: - template: Security/SAST.gitlab-ci.yml +workflow: + rules: + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS + when: never + - if: $CI_COMMIT_BRANCH + + stages: - prep # prep work like rebuilding the container images if there is a change - build # for actually building and testing things in a container