diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 5be9b92..c32f079 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -14,30 +14,45 @@ jobs: - name: Checkout uses: https://gitea.nikitapozd.dev/actions/checkout@v6 - - name: Install tools (curl, jq) with debug + - name: Force APK to IPv4-only mirror shell: sh run: | - set -euxo pipefail - - echo "=== Network info ===" - ip addr || true - ip route || true - cat /etc/resolv.conf || true - - echo "=== DNS test ===" - nslookup dl-cdn.alpinelinux.org || true - - echo "=== HTTPS test (IPv4 only) ===" - curl -4 -v --max-time 10 https://dl-cdn.alpinelinux.org || true - - echo "=== APK repositories ===" + set -eux + sed -i 's|https://dl-cdn.alpinelinux.org|https://dl-4.alpinelinux.org|g' /etc/apk/repositories cat /etc/apk/repositories - - echo "=== APK update (verbose) ===" - apk update -v --no-progress - - echo "=== Installing curl jq (verbose, no cache) ===" + - name: Install tools + shell: sh + run: | + set -eux + APK_PROGRESS=plain apk update -v --no-progress APK_PROGRESS=plain apk add -v --no-cache curl jq + +# - name: Install tools (curl, jq) with debug +# shell: sh +# run: | +# set -euxo pipefail +# +# echo "=== Network info ===" +# ip addr || true +# ip route || true +# cat /etc/resolv.conf || true +# +# echo "=== DNS test ===" +# nslookup dl-cdn.alpinelinux.org || true +# +# echo "=== HTTPS test (IPv4 only) ===" +# curl -4 -v --max-time 10 https://dl-cdn.alpinelinux.org || true +# +# echo "=== APK repositories ===" +# cat /etc/apk/repositories +# +# echo "=== APK update (verbose) ===" +# apk update -v --no-progress +# +# echo "=== Installing curl jq (verbose, no cache) ===" +# APK_PROGRESS=plain apk add -v --no-cache curl jq + + # - name: Install tools (curl, jq) # run: apk add --no-cache curl jq