Skip to content

Commit

Permalink
Merge branch 'develop' into dkijania/port_mina_sidecar_removal_dev
Browse files Browse the repository at this point in the history
  • Loading branch information
dkijania authored Oct 16, 2024
2 parents 689dfe8 + e72aaf5 commit 4704ecd
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions scripts/debian/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,21 @@ for _i in {1..10}; do (

for deb in $DEB_NAMES
do
echo "Adding packages.o1test.net ${DEB_CODENAME} ${DEB_RELEASE}"
sudo echo "deb [trusted=yes] http://packages.o1test.net ${DEB_CODENAME} ${DEB_RELEASE}" | sudo tee /etc/apt/sources.list.d/mina.list

DEBS3_SHOW="deb-s3 show $BUCKET_ARG $S3_REGION_ARG"

# extracting name from debian package path. E.g:
# _build/mina-archive_3.0.1-develop-a2a872a.deb -> mina-archive
deb=$(basename "$deb")
deb="${deb%_*}"

for i in {1..10}; do
sudo apt-get update

set +e
${DEBS3_SHOW} "$deb" "${DEB_VERSION}" "${ARCH}" -c "${DEB_CODENAME}" -m "${DEB_RELEASE}"
LAST_VERIFY_STATUS=$?

set -eo pipefail

if [[ $LAST_VERIFY_STATUS == 0 ]]; then
echo "succesfully validated that package is uploaded to deb-s3"
break
Expand Down

0 comments on commit 4704ecd

Please sign in to comment.