]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
scripts: Update signing scripts to support CentOS/RHEL8 1495/head
authorDavid Galloway <dgallowa@redhat.com>
Fri, 31 Jan 2020 15:10:50 +0000 (10:10 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Fri, 31 Jan 2020 15:10:50 +0000 (10:10 -0500)
Signed-off-by: David Galloway <dgallowa@redhat.com>
scripts/sign-rpms
scripts/sync-pull
scripts/sync-push

index 8d4d5a08c5739b5f6bf49878c1ed1119d668f2cc..b757fe5ceff8a9554182ed877ba1eeea2d487aa2 100644 (file)
@@ -26,7 +26,7 @@ distros=( centos rhel )
 
 # Although upstream these might be "el6" or "el7", we just use these since they
 # are the same values used by the build system.
-distro_versions=( 6 7 )
+distro_versions=( 6 7 )
 
 # 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 327dd0018b93dde270d94b3c54978c5d4e31c58b..cdeb197c9bbc454ea00870353621e30764b85283 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; 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}; 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/,$//')
@@ -44,10 +44,12 @@ echo $deb_cmd
 echo "--------------------------------------------"
 rsync -Lavh -e 'ssh -p 2222' --progress $deb_cmd
 
-el7_cmd="ubuntu@chacra.ceph.com:/opt/repos/$project/$release/$sha1/centos/7/flavors/default/* /opt/repos/$project/$release/centos/7/"
-echo $el7_cmd
-echo "--------------------------------------------"
-rsync -Lavh -e 'ssh -p 2222' --progress $el7_cmd
+for el_version in 7 8; do
+  el_cmd="ubuntu@chacra.ceph.com:/opt/repos/$project/$release/$sha1/centos/$el_version/flavors/default/* /opt/repos/$project/$release/centos/$el_version/"
+  echo $el_cmd
+  echo "--------------------------------------------"
+  rsync -Lavh -e 'ssh -p 2222' --progress $el_cmd
+done
 
 if $need_rerun; then
   echo
index bd6832934275c45b8439b09cd9d2781df03adb8a..1b6774248a585d2d7558dbfc76350a6386ea5746 100644 (file)
@@ -15,8 +15,10 @@ ceph_sync() {
   deb_cmd="/opt/repos/ceph/$release/debian/jessie/* signer@download.ceph.com:/data/download.ceph.com/www/debian-$release/"
   rsync --progress --exclude '*lockfile*' -avr $deb_cmd
 
-  el7_cmd="/opt/repos/ceph/$release/centos/7/* signer@download.ceph.com:/data/download.ceph.com/www/rpm-$release/el7/"
-  rsync --progress -avr $el7_cmd
+  for el_version in 7 8; do
+    el_cmd="/opt/repos/ceph/$release/centos/$el_version/* signer@download.ceph.com:/data/download.ceph.com/www/rpm-$release/el${el_version}/"
+    rsync --progress -avr $el_cmd
+  done
 }
 
 for i in "${releases[@]}"