Skip to content

Commit

Permalink
Add size and text from mirrors
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik committed Dec 17, 2024
1 parent 4a8451f commit 31d382f
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/pull-mirrors-from-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,25 @@ jobs:
- name: Make docs
run: |
#sudo apt-get -y install jq curl dnsutils
DOCUMENT="Mirrors.md"
echo "## Mirroring Armbian?" > ${DOCUMENT}
echo "" >> ${DOCUMENT}
echo "Space needs:" > ${DOCUMENT}
echo "" >> ${DOCUMENT}
echo "| Mirror | Command | Size |" >> ${DOCUMENT}
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}
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 "" >> ${DOCUMENT}
echo "| Site | Time Zone | Flag | Speed | Packages | Images | Archive | Rsync |" > ${DOCUMENT}
echo "|:-----|:----------|------|-------:|:--------:|:------:|:-------:|:-----:|" >> ${DOCUMENT}
Expand Down

0 comments on commit 31d382f

Please sign in to comment.