From b5de66bd22ac1deb1eaee532a8ecf5bb1e0ee689 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=AE=B6=E8=AE=AD?= Date: Wed, 26 Aug 2026 12:02:53 +0800 Subject: [PATCH] =?UTF-8?q?debug:=20=E6=BE=A7=E7=82=B2=E5=A7=9E=E7=BC=83?= =?UTF-8?q?=E6=88=A0=E7=B2=B6=E7=92=87=E5=A9=83=E6=9F=87=E5=A7=9D=E3=83=A9?= =?UTF-8?q?=EE=80=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 94fa684..e540173 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -31,6 +31,22 @@ jobs: - name: 安装 git run: apk add --no-cache git + - name: Debug 网络环境 + run: | + set -x + { + echo "=== /etc/hosts ===" + cat /etc/hosts + echo "=== getent hosts host.docker.internal ===" + getent hosts host.docker.internal || echo "NOT_RESOLVED" + echo "=== GITHUB_TOKEN len ===" + echo "len=${#GITHUB_TOKEN}" + echo "=== GITHUB_REPOSITORY ===" + echo "${GITHUB_REPOSITORY}" + echo "=== ping test ===" + wget -q -T 3 -O /dev/null http://host.docker.internal:3000/api/v1/version && echo HTTP_OK || echo HTTP_FAIL + } | tee /opt/freedom/workspace-debug.txt + - name: 拉取 master 代码 run: | set -euo pipefail