[tracker-miners/wip/carlosg/ci-coverage-all-tests: 28/28] ci: Add handling for rebuilding containers on a scheduled job




commit a0fbc4ef64ae606b69741c9adb05eb589fe5f52a
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat Sep 24 13:55:11 2022 +0200

    ci: Add handling for rebuilding containers on a scheduled job
    
    Traditionally, we've only rebuilt images on an as-needed basis, this
    however isn't most useful if we want to make CI able to track seccomp
    breaks in recent updates from distros.
    
    In order to help there, add the CI handling so we can trigger rebuild
    of testing containers on a scheduled job set up through the gitlab
    UI. This will help us catching newly introduced syscalls more
    proactively than now.

 .gitlab-ci.yml | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 47ce97b6f..9657d9662 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -400,3 +400,37 @@ coverity:
       --form description="gitlab CI build"
   only:
     - master
+
+# Triggered from a scheduled job
+
+.container_rebuild_template: &container_rebuild
+  only:
+    variables:
+      - $CI_PIPELINE_SOURCE == "schedule" && $CRON_TASK == "REBUILD_CI_CONTAINERS"
+  variables:
+    GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
+    FDO_FORCE_REBUILD: 1 # Force rebuilding the image
+
+rebuild-fedora-container@x86_64:
+  extends:
+    - .fdo.container-build@fedora
+    - .tracker-miners.fedora:36@x86_64
+  <<: *container_rebuild
+
+rebuild-fedora-rawhide-container@x86_64:
+  extends:
+    - .fdo.container-build@fedora
+    - .tracker-miners.fedora:rawhide@x86_64
+  <<: *container_rebuild
+
+rebuild-fedora-container@aarch64:
+  extends:
+    - .fdo.container-build@fedora
+    - .tracker-miners.fedora:36@aarch64
+  <<: *container_rebuild
+
+rebuild-ubuntu-container@x86_64:
+  extends:
+    - .fdo.container-build@ubuntu
+    - .tracker-miners.ubuntu:rolling@x86_64
+  <<: *container_rebuild


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