[OS-BUILD PATCHv3 1/5] Simplify ARK pipeline rules

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

 



From: Michael Hofmann <mhofmann@xxxxxxxxxx>

Simplify ARK pipeline rules

Signed-off-by: Michael Hofmann <mhofmann@xxxxxxxxxx>

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index blahblah..blahblah 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -47,18 +47,17 @@ workflow:
     skip_test: 'true'
     skip_results: 'true'
   rules:
-    # Do a full build for non-automated bot config contributions
-    - if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "os-build" &&
-           $CI_COMMIT_AUTHOR != "Fedora Kernel Team <kernel-team@xxxxxxxxxxxxxxxxx>"'
-      variables:
-        architectures: 'x86_64 aarch64 s390x ppc64le'
-        skip_build: 'false'
-        skip_publish: 'false'
-    # Default build - srpm only
-    - if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "os-build"'
+    - if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != "os-build"
+      when: never
+    # automated commits - srpm only
+    - if: $CI_COMMIT_AUTHOR == "Fedora Kernel Team <kernel-team@xxxxxxxxxxxxxxxxx>"
+      when: on_success
       variables:
         skip_build: 'true'
         skip_publish: 'true'
+    - when: on_success
+      variables:
+        architectures: 'x86_64 aarch64 s390x ppc64le'
 
 .trigger_eln_pipeline:
   stage: test

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2575
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux