Fix building lists and invert the order

This commit is contained in:
2023-08-10 11:25:07 +02:00
parent 5f2c4f7257
commit c772d2af60
3 changed files with 10 additions and 2 deletions

View File

@ -19,10 +19,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build the stretchoid list
run: ./make-stretchoid.sh
- name: Build the binaryedge list
run: ./make-binaryedge.sh
- name: Build the stretchoid list
run: ./make-stretchoid.sh
- name: Post the summary
run: |
git add -A

View File

@ -4,6 +4,10 @@ REV="v-$(date --iso-8601=seconds)"
cd ./digitalocean/
if [ ! -d ./binaryedge_revisions/ ]; then
mkdir ./binaryedge_revisions
fi
# With failure handling
cat binaryedge_digitalocean_possible_ips.txt | xargs -P 50 -I {} bash -c 'set -eu;rev="$(dig @9.9.9.9 +short +time=1 +tries=1 -x {})"; if [[ "$rev" == *";;"* ]]; then sleep 1; rev="$(dig @8.8.8.8 +short +time=1 +tries=1 -x {})"; fi; echo "{} # $rev";' 1> binaryedge_revisions/$REV.txt

View File

@ -4,6 +4,10 @@ REV="v-$(date --iso-8601=seconds)"
cd ./digitalocean/
if [ ! -d ./stretchoid_revisions/ ]; then
mkdir ./stretchoid_revisions
fi
# With failure handling
cat stretchoid_digitalocean_possible_ips.txt | xargs -P 50 -I {} bash -c 'set -eu;rev="$(dig @9.9.9.9 +short +time=1 +tries=1 -x {})"; if [[ "$rev" == *";;"* ]]; then sleep 1; rev="$(dig @8.8.8.8 +short +time=1 +tries=1 -x {})"; fi; echo "{} # $rev";' 1> stretchoid_revisions/$REV.txt