[extensions-web/wip/ocp4: 3/4] ci: pin pipeline to MRs and protected branches only




commit 54d30ac4991c4c34191809f5903de3ec014f1de2
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Sun May 29 15:19:07 2022 +0400

    ci: pin pipeline to MRs and protected branches only

 .gitlab-ci.yml | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a0c0983..6891312 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,6 +2,11 @@ variables:
   PYTHON_VERSION: '3.9'
   XAPIAN_VERSION: '1.4.19'
 
+workflow:
+  rules:
+    - if: $CI_COMMIT_REF_PROTECTED == "true"
+    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
+
 stages:
   - build and test
   - deploy


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]