fix ci wget and apk
Some checks failed
CI TEST (Vault secrets) / build (push) Has been cancelled

This commit is contained in:
Nikita Pozdniakov
2026-01-27 13:49:19 +03:00
parent a4343d530a
commit 0aef75230c

View File

@@ -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: