From 0aef75230ca5e23d48abf7c720fed05dc1615315 Mon Sep 17 00:00:00 2001 From: Nikita Pozdniakov Date: Tue, 27 Jan 2026 13:49:19 +0300 Subject: [PATCH] fix ci wget and apk --- .gitea/workflows/ci.yml | 64 +++++++++-------------------------------- 1 file changed, 14 insertions(+), 50 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 3830efe..277cf5a 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -15,61 +15,25 @@ jobs: - name: Checkout uses: https://gitea.nikitapozd.dev/actions/checkout@v6 - - name: Network smoke test + - name: Network smoke test (with tools) run: | - set -eux - ip link | sed -n '1,80p' - echo "--- resolv.conf ---" - cat /etc/resolv.conf || true - echo "--- DNS ---" - nslookup dl-cdn.alpinelinux.org || true - echo "--- download APKINDEX (10s) ---" - wget -S -O /dev/null --timeout=10 --tries=1 \ + set -eux + apk add --no-cache bind-tools wget ca-certificates + ip link | sed -n '1,80p' + echo "--- resolv.conf ---" + cat /etc/resolv.conf || true + echo "--- DNS ---" + nslookup dl-cdn.alpinelinux.org || true + echo "--- download APKINDEX (10s) ---" + wget -S -O /dev/null --timeout=10 --tries=1 \ https://dl-cdn.alpinelinux.org/alpine/v3.22/main/x86_64/APKINDEX.tar.gz - - name: Force APK to IPv4-only mirror - shell: sh - run: | - set -eux - sed -i 's|https://dl-cdn.alpinelinux.org|https://dl-4.alpinelinux.org|g' /etc/apk/repositories - cat /etc/apk/repositories - - name: Install tools (curl, jq) with verbose run: | - set -eux - export APK_PROGRESS=plain - apk update -v --no-progress - 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 + set -eux + export APK_PROGRESS=plain + apk update -v --no-progress + apk add -v --no-cache curl jq - name: Get Keycloak access token from Gitea secrets env: