From fb1d8afae2a05654441800b75bb30319c9e61a1f Mon Sep 17 00:00:00 2001
From: Massimiliano Adamo <maxadamo@gmail.com>
Date: Fri, 14 Feb 2025 13:48:14 +0100
Subject: [PATCH] fix: enhance package deployment to support multiple Ubuntu
releases
---
create-packages.sh | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/create-packages.sh b/create-packages.sh
index 420ae3a..6a0c48e 100755
--- a/create-packages.sh
+++ b/create-packages.sh
@@ -160,9 +160,12 @@ if [[ -n $PUSH_DEB ]]; then
echo "please create first python3-wile-coyote_${VERSION}-1_all.deb"
exit
fi
- scp $PKG aptly@repositories01.geant.org:deb/ubuntu-20.04/geant_deb/pool/main/p/python3-wile-coyote/
- echo -e "\nupdating repo..."
- ssh aptly@repositories01.geant.org ${SCRIPT_DIR}/geant-deb-update.sh 20.04
+ for REL in 20.04 22.04; do
+ echo -e "\n\npushing to aptly repository for Ubuntu ${REL}..."
+ scp $PKG aptly@repositories01.geant.org:deb/ubuntu-$REL/geant_deb/pool/main/p/python3-wile-coyote/
+ echo -e "\nupdating repo..."
+ ssh aptly@repositories01.geant.org ${SCRIPT_DIR}/geant-deb-update.sh $REL
+ done
echo -e "\nsynchronizing repository across servers..."
ssh aptly@repositories01.geant.org ${SCRIPT_DIR}/repos-rsync.sh >/dev/null
fi
--
GitLab