From 2acb89395d51d2f0135e2c7bd2d749a581c4c93f Mon Sep 17 00:00:00 2001 From: Fabian Arrotin Date: Oct 15 2021 13:50:47 +0000 Subject: Added snippet for SCL tags modification Signed-off-by: Fabian Arrotin --- diff --git a/docs/buildsys/koji-cbs-sigs.md b/docs/buildsys/koji-cbs-sigs.md index 18e5358..e170e21 100644 --- a/docs/buildsys/koji-cbs-sigs.md +++ b/docs/buildsys/koji-cbs-sigs.md @@ -242,6 +242,29 @@ Added external repo centos8s-baseos to tag kmods8s-packages-main-el8-build (prio ``` +!!! danger + If you have to create tags for SCLs, see the note below as we have to consolidate tags into specific one for signing purpose. We'll eventually backport that into automation script later + +##### SCLs specific tags +The Software Collection SIG has some specific requirements and pkgs that need to be tagged in buildroot and also tags being consolidated when processed for signing (all lands into *one* repository and not multiple ones, even if there quite some SCL tags. + +Example below that we need to do when we have a request for a new SCL , and let's assume that it's a RH collection.We have already created the tag as in the process above, but we'll need to tune these tags a little bit and let's so first declare some variables : + +``` +tag="sclo7-rh-redis6-rh" +collection="rh-redis6" +origin="rh" # can be sclo or rh, needed below +koji add-group-pkg ${tag}-el7-build srpm-build scl-utils-build ${collection}-build +koji add-group-pkg ${tag}-el7-build build scl-utils-build ${collection}-build + +for level in testing release ; do + last_priority=$(koji taginfo sclo7-all-${origin}-${level}|tail -n 1 |awk '{print $1}') + koji add-tag-inheritance sclo7-all-${origin}-${level} ${tag}-${level} --priority $(( $last_priority + 5 )) +done + +``` + + #### Modifying existing tags It's always possible to modify some existing tags through standard `koji` (or `cbs` alias) CLI calls.