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