From 67750ea0b5bf91bf9cb68c16184d09fc8a045f2b Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Tue, 17 Dec 2024 09:38:32 +0100 Subject: [PATCH] Add size and text from mirrors --- .github/workflows/pull-mirrors-from-db.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-mirrors-from-db.yml b/.github/workflows/pull-mirrors-from-db.yml index d9f8b5e8..cd52ec24 100644 --- a/.github/workflows/pull-mirrors-from-db.yml +++ b/.github/workflows/pull-mirrors-from-db.yml @@ -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}