Merge pull request #8505 from tigercl/chore/relup

chore(relup): download relup base version packages from s3
This commit is contained in:
zhongwencool 2022-07-19 16:00:49 +08:00 committed by GitHub
commit f3ff73e683
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -14,15 +14,15 @@ fi
case $PROFILE in case $PROFILE in
"emqx") "emqx")
DIR='broker' DIR='emqx-ce'
EDITION='community' EDITION='community'
;; ;;
"emqx-ee") "emqx-ee")
DIR='enterprise' DIR='emqx-ee'
EDITION='enterprise' EDITION='enterprise'
;; ;;
"emqx-edge") "emqx-edge")
DIR='edge' DIR='emqx-edge'
EDITION='edge' EDITION='edge'
;; ;;
esac esac
@ -65,7 +65,7 @@ pushd _upgrade_base
for tag in $(../scripts/relup-base-vsns.sh $EDITION | xargs echo -n); do for tag in $(../scripts/relup-base-vsns.sh $EDITION | xargs echo -n); do
filename="$PROFILE-${tag#[e|v]}-otp$OTP_VSN-$SYSTEM-$ARCH.zip" filename="$PROFILE-${tag#[e|v]}-otp$OTP_VSN-$SYSTEM-$ARCH.zip"
url="https://www.emqx.com/downloads/$DIR/${tag#[e|v]}/$filename" url="https://packages.emqx.io/$DIR/$tag/$filename"
if [ ! -f "$filename" ] && curl -L -I -m 10 -o /dev/null -s -w "%{http_code}" "${url}" | grep -q -oE "^[23]+" ; then if [ ! -f "$filename" ] && curl -L -I -m 10 -o /dev/null -s -w "%{http_code}" "${url}" | grep -q -oE "^[23]+" ; then
echo "downloading base package from ${url} ..." echo "downloading base package from ${url} ..."
curl -L -o "${filename}" "${url}" curl -L -o "${filename}" "${url}"