From: Michael Hofmann <[email protected]>

CI: provide child pipelines for CKI container image gating

Signed-off-by: Michael Hofmann <[email protected]>

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index blahblah..blahblah 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -55,6 +55,9 @@ workflow:
   only-ark-latest-head: &only-ark-latest-head
     if: $CI_COMMIT_BRANCH != "ark-latest" || $CI_PIPELINE_SOURCE !~ /push|web/
     when: never
+  only-cki-gating-head: &only-cki-gating-head
+    if: $CI_COMMIT_BRANCH != "cki-gating" || $CI_PIPELINE_SOURCE !~ /pipeline/ 
|| $builder_image !~ $JOB_FILTER
+    when: never
   on-success: &on-success
     when: on_success
   manual-on-mr: &manual-on-mr
@@ -101,6 +104,15 @@ workflow:
     kpet_tree_name: eln
     disttag_override: '.eln'
 
+.cki_gating_overrides:
+  variables:
+    # assume potential breakages affect all arches and test only one arch
+    architectures: x86_64
+    # prevent the CKI production machinery from caring about these pipelines
+    CKI_DEPLOYMENT_ENVIRONMENT: retrigger
+    # explicitly pass down some trigger variables to the child pipeline
+    builder_image_tag: $builder_image_tag
+
 .no_tests:
   variables:
     skip_setup: 'true'
@@ -140,6 +152,11 @@ workflow:
     - *only-ark-latest-head
     - *on-success
 
+.cki_gating_head:
+  rules:
+    - *only-cki-gating-head
+    - *on-success
+
 # variants
 .rawhide_up:
   variables:
@@ -297,6 +314,11 @@ ark_clanglto_debug_baseline:
   extends: [.baseline, .trigger_rawhide, .reported_tests_clang, 
.ark_latest_head,
             .rawhide_clanglto_up_debug]
 
+# Rawhide CKI container image gating
+ark_cki_gating:
+  extends: [.baseline, .trigger_rawhide, .no_tests, .cki_gating_head,
+            .rawhide_up, .cki_gating_overrides]
+
 # ELN CI
 eln_merge_request:
   extends: [.merge_request, .trigger_eln, .no_tests, .srpm_for_bot,
@@ -363,6 +385,11 @@ eln_64k_debug_baseline:
   extends: [.baseline, .trigger_eln, .reported_tests, .ark_latest_head,
             .eln_64k_debug]
 
+# ELN CKI container image gating
+eln_cki_gating:
+  extends: [.baseline, .trigger_eln, .no_tests, .cki_gating_head,
+            .eln_up, .cki_gating_overrides]
+
 # scheduled job
 .scheduled_setup:
   image: quay.io/cki/builder-eln:production

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2742
_______________________________________________
kernel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to