[extensions-web/wip/ocp4: 3/4] ci: pin pipeline to MRs and protected branches only
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web/wip/ocp4: 3/4] ci: pin pipeline to MRs and protected branches only
- Date: Sun, 29 May 2022 11:36:05 +0000 (UTC)
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]