Skip to content

Commit

Permalink
Add names to the download targets and fix small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik committed Dec 17, 2024
1 parent 31d382f commit 15ec2c8
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/pull-mirrors-from-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,25 @@ jobs:
echo "|--------|---------|-----:|" >> ${DOCUMENT}
for storage in dl apt archive oldarchive; do
size=$(curl -s https://rsync.armbian.com/$storage/size.txt)
echo "| Images | \`rsync -av rsync://rsync.armbian.com/$storage\` | $size |" >> ${DOCUMENT}
case "$storage" in
"dl")
TEXT="Current images";;
"apt")
TEXT="Packages";;
"archive")
TEXT="Old images";;
*)
TEXT="Very old images";
esac
echo "| $TEXT | \`rsync -av rsync://rsync.armbian.com/$storage\` | $size |" >> ${DOCUMENT}
done
echo "
1. Chose target and setup HTTP/HTTPS hostname
2. Setup cron to sync every 2-4 hours
3. [Inform us](https://www.armbian.com/contact/)
" >> ${DOCUMENT}
echo "## Current Mirrors" > ${DOCUMENT}
echo "## Current Mirrors" >> ${DOCUMENT}
echo "" >> ${DOCUMENT}
echo "| Site | Time Zone | Flag | Speed | Packages | Images | Archive | Rsync |" > ${DOCUMENT}
Expand Down

0 comments on commit 15ec2c8

Please sign in to comment.