]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
scripts: Update signing scripts for el9 2059/head
authorDavid Galloway <dgallowa@redhat.com>
Thu, 11 Aug 2022 01:04:54 +0000 (21:04 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Thu, 11 Aug 2022 01:04:54 +0000 (21:04 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
scripts/sign-rpms
scripts/sync-pull
scripts/sync-push

index 8b9ee559a92ff64c89ca4f6515f29557a6dfcd1b..d7f0f7c33500c47338ccfc506a9fd9b7967d6887 100644 (file)
@@ -32,7 +32,7 @@ distros=( centos rhel )
 
 # Although upstream these might be "el7" or "el8", we just use these since they
 # are the same values used by the build system.
-distro_versions=( 7 8 )
+distro_versions=( 7 8 )
 
 # To unlock the gpg keys for the current run, it is requested over STDIN as
 # a password and later passed into GPG directly as a variable.
index c2d436f731635c0668268be2931c8bed6923eacf..6056b6c13922d60f3041eeccddfe440a15254c41 100644 (file)
@@ -27,7 +27,7 @@ echo "Found the most packages ($current_highest_count) in $highest_combo."
 # Check the the DEB and RPM chacra endpoints to see if the repos are or need updating.
 # This helps prevent packages from getting missed when signing and pushing.
 need_rerun=false
-for endpoint in https://chacra.ceph.com/repos/$project/$release/$sha1/$highest_combo https://chacra.ceph.com/repos/$project/$release/$sha1/centos/{7,8}; do
+for endpoint in https://chacra.ceph.com/repos/$project/$release/$sha1/$highest_combo https://chacra.ceph.com/repos/$project/$release/$sha1/centos/{7,8,9}; do
   chacra_repo_status=$(curl -s -L $endpoint)
   # python is only used here because jq isn't installed on the signer box
   chacra_needs_update=$(echo $chacra_repo_status | python -mjson.tool | grep needs_update | awk '{ print $2 }' | sed 's/,$//')
@@ -46,7 +46,7 @@ else
   newgen=true
   # Get numerical version number (we only need this with Octopus or later because of the new directory/path scheme).
   version=$(echo $chacra_repo_status | python -mjson.tool | grep \"version\" | awk '{ print $2 }' | sed 's/"//g')
-  [[ -d /opt/repos/$project/$release-$version ]] | mkdir -p /opt/repos/$project/$release-$version/{debian/jessie,centos/{7,8}}
+  [[ -d /opt/repos/$project/$release-$version ]] | mkdir -p /opt/repos/$project/$release-$version/{debian/jessie,centos/{7,8,9}}
 fi
 
 # Replace $highest_combo with your own DISTRO/VERSION if you don't want to sync from the repo with the most packages.
@@ -59,7 +59,7 @@ echo $deb_cmd
 echo "--------------------------------------------"
 rsync -Lavh -e 'ssh -p 2222' --progress --exclude '*lockfile*' $deb_cmd
 
-for el_version in 7 8; do
+for el_version in 7 8 9; do
   if $newgen; then
     el_cmd="ubuntu@chacra.ceph.com:/opt/repos/$project/$release/$sha1/centos/$el_version/flavors/default/* /opt/repos/$project/$release-$version/centos/$el_version/"
   else
index 7e68fb6bd7db325ee1425701f7a3aa623a72b1fc..5ef489192b3560402279d28ca026d614dabd0905 100644 (file)
@@ -34,7 +34,7 @@ ceph_sync() {
     fi
     rsync --progress --exclude '*lockfile*' -avr $deb_cmd
 
-    for el_version in 7 8; do
+    for el_version in 7 8 9; do
       if $newgen; then
         ssh signer@download.ceph.com "mkdir -p /data/download.ceph.com/www/rpm-$version/el$el_version"