gitlab CI: set the standard workflow rules for an fdo project

This commit is contained in:
Peter Hutterer
2024-09-03 13:49:04 +10:00
parent b48c2b7028
commit 917c2ea204

View File

@@ -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