Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add size and text from mirrors #566

Merged
merged 1 commit into from
Dec 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading