curl test
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-06-03 17:33:22 -07:00
parent 57958bd383
commit 7f38e567d9
2 changed files with 47 additions and 3 deletions

30
scripts/download-release Executable file
View File

@@ -0,0 +1,30 @@
#!/bin/bash
BUILD=$1
DIR=$2
set -euo pipefail
if [ -z "$DIR" ]; then
echo run with $0 BUILD_NUMBER DIR
exit 2
fi
mkdir -p $DIR
BASE=https://geodns.bitnames.com/monitor/builds/$BUILD
files=`curl -sSf $BASE/checksums.txt | awk '{print $2}'`
metafiles="checksums.txt metadata.json CHANGELOG.md artifacts.json"
for f in $metafiles; do
url=$BASE/$f
echo downloading $url
curl --remove-on-error -sSfRo $DIR/$f $url || true
done
for f in $files; do
url=$BASE/$f
echo downloading $url
curl --remove-on-error -sSfRo $DIR/$f $url
done