debug: 澧炲姞缃戠粶璇婃柇姝ラ
CI/CD Deploy (Admin) / 构建后端镜像并部署 (push) Failing after 2s

This commit is contained in:
张家训
2026-08-26 12:02:53 +08:00
parent 541eaf6db7
commit b5de66bd22
+16
View File
@@ -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