fix,ci(packages.yml): specify port when checking repository

Fixes commit a3e68e2b89 ("fix(workflows/packages.yml): Fix uploads
to packages.termux.dev by using a working ip address for aptly").
This commit is contained in:
Henrik Grimler 2022-06-18 19:45:39 +02:00
parent 0c4f47e713
commit f5316db82c
No known key found for this signature in database
GPG Key ID: B0076E490B71616B
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ jobs:
REPOSITORY_DOMAIN="$(echo "$REPOSITORY_URL" | cut -d'/' -f3)"
echo "Checking $REPOSITORY_DOMAIN ip access"
for ip in $(dig -t a +short "$REPOSITORY_DOMAIN" | sed '1d'); do
if [ $(curl -s -o /dev/null -w "%{http_code}" --resolve "$REPOSITORY_DOMAIN:$ip" "http://$REPOSITORY_DOMAIN") != "200" ]; then
if [ $(curl -s -o /dev/null -w "%{http_code}" --resolve "$REPOSITORY_DOMAIN:80:$ip" "http://$REPOSITORY_DOMAIN") != "200" ]; then
echo "success: $ip"
CURL_ADDITIONAL_OPTIONS=(--resolve "$REPOSITORY_DOMAIN:$ip")
break