This commit is contained in:
@@ -15,61 +15,25 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: https://gitea.nikitapozd.dev/actions/checkout@v6
|
uses: https://gitea.nikitapozd.dev/actions/checkout@v6
|
||||||
|
|
||||||
- name: Network smoke test
|
- name: Network smoke test (with tools)
|
||||||
run: |
|
run: |
|
||||||
set -eux
|
set -eux
|
||||||
ip link | sed -n '1,80p'
|
apk add --no-cache bind-tools wget ca-certificates
|
||||||
echo "--- resolv.conf ---"
|
ip link | sed -n '1,80p'
|
||||||
cat /etc/resolv.conf || true
|
echo "--- resolv.conf ---"
|
||||||
echo "--- DNS ---"
|
cat /etc/resolv.conf || true
|
||||||
nslookup dl-cdn.alpinelinux.org || true
|
echo "--- DNS ---"
|
||||||
echo "--- download APKINDEX (10s) ---"
|
nslookup dl-cdn.alpinelinux.org || true
|
||||||
wget -S -O /dev/null --timeout=10 --tries=1 \
|
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
|
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
|
- name: Install tools (curl, jq) with verbose
|
||||||
run: |
|
run: |
|
||||||
set -eux
|
set -eux
|
||||||
export APK_PROGRESS=plain
|
export APK_PROGRESS=plain
|
||||||
apk update -v --no-progress
|
apk update -v --no-progress
|
||||||
apk add -v --no-cache curl jq
|
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
|
|
||||||
|
|
||||||
- name: Get Keycloak access token from Gitea secrets
|
- name: Get Keycloak access token from Gitea secrets
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user