]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
sync-pull: Automate download.ceph.com tarball upload
authorDavid Galloway <dgallowa@redhat.com>
Fri, 26 Aug 2022 17:35:21 +0000 (13:35 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Fri, 26 Aug 2022 17:35:21 +0000 (13:35 -0400)
I swapped the paths in `for endpoint in` because there may not be a centos/9 repo.  That means `$version` gets left unset and isn't available to `get-tarballs.sh` later in the script.

Signed-off-by: David Galloway <dgallowa@redhat.com>
scripts/sync-pull

index 520defae05f7b9f75c0579e179f7e4ce4f3cedf9..7d381d90bcf3d83ced2f4056bff48e1934908dc6 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,9}; do
+for endpoint in https://chacra.ceph.com/repos/$project/$release/$sha1/centos/{7,8,9} https://chacra.ceph.com/repos/$project/$release/$sha1/$highest_combo; 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/,$//')
@@ -70,6 +70,8 @@ for el_version in 7 8 9; do
   rsync -Lavh -e 'ssh -p 2222' --progress $el_cmd
 done
 
+ssh signer@download.ceph.com "/home/signer/bin/get-tarballs.sh $release $sha1 $version"
+
 if $need_rerun; then
   echo
   echo "********************************************"