added IPv4-only for apk alpine
Some checks failed
CI TEST (Vault secrets) / build (push) Has been cancelled
Some checks failed
CI TEST (Vault secrets) / build (push) Has been cancelled
This commit is contained in:
@@ -14,30 +14,45 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: https://gitea.nikitapozd.dev/actions/checkout@v6
|
uses: https://gitea.nikitapozd.dev/actions/checkout@v6
|
||||||
|
|
||||||
- name: Install tools (curl, jq) with debug
|
- name: Force APK to IPv4-only mirror
|
||||||
shell: sh
|
shell: sh
|
||||||
run: |
|
run: |
|
||||||
set -euxo pipefail
|
set -eux
|
||||||
|
sed -i 's|https://dl-cdn.alpinelinux.org|https://dl-4.alpinelinux.org|g' /etc/apk/repositories
|
||||||
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
|
cat /etc/apk/repositories
|
||||||
|
- name: Install tools
|
||||||
echo "=== APK update (verbose) ==="
|
shell: sh
|
||||||
apk update -v --no-progress
|
run: |
|
||||||
|
set -eux
|
||||||
echo "=== Installing curl jq (verbose, no cache) ==="
|
APK_PROGRESS=plain apk update -v --no-progress
|
||||||
APK_PROGRESS=plain apk add -v --no-cache curl jq
|
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)
|
# - name: Install tools (curl, jq)
|
||||||
# run: apk add --no-cache curl jq
|
# run: apk add --no-cache curl jq
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user