From 0bb94ec74c896f401d6d7a46ad3e16b664095f97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=81=B5=E5=BA=94?= Date: Mon, 14 Sep 2026 14:53:46 +0800 Subject: [PATCH 1/2] fix(ci): staging deploy SSH host to internal IP for Docker runner ci-l2 runner runs in Docker containers, 127.0.0.1 inside container refers to the container itself, not the host. Use 172.30.18.199 (host internal IP) which is reachable from Docker containers via the Docker bridge network. --- .gitea/workflows/ci-pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/ci-pipeline.yml b/.gitea/workflows/ci-pipeline.yml index 9ae5b1fba..191c2b6c8 100755 --- a/.gitea/workflows/ci-pipeline.yml +++ b/.gitea/workflows/ci-pipeline.yml @@ -1256,7 +1256,7 @@ jobs: set -eux # CI runner (act_runner) 部署在 116 staging 本机(116.62.226.203 公网 22 未开放), # 默认走 127.0.0.1:22 本机 SSH,避免跨机网络依赖;可通过 secrets 覆盖。 - staging_host="${STAGING_SSH_HOST:-127.0.0.1}" + staging_host="${STAGING_SSH_HOST:-172.30.18.199}" staging_user="${STAGING_SSH_USER:-root}" staging_port="${STAGING_SSH_PORT:-22}" echo "Host: $staging_host" -- 2.54.0 From aa515ae3a51ab95a9d08c688575c018a682d9c6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=81=B5=E5=BA=94?= Date: Mon, 14 Sep 2026 15:05:45 +0800 Subject: [PATCH 2/2] chore(ci): keep default 127.0.0.1 for staging SSH (secrets now configured) The STAGING_SSH_HOST/PORT/USER/KEY secrets are now configured in Gitea to point to 116 internal IP (172.30.18.199:22), so the default value doesn't matter as much. Keep 127.0.0.1 for cases where runner runs on the same host as staging. --- .gitea/workflows/ci-pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/ci-pipeline.yml b/.gitea/workflows/ci-pipeline.yml index 191c2b6c8..9ae5b1fba 100755 --- a/.gitea/workflows/ci-pipeline.yml +++ b/.gitea/workflows/ci-pipeline.yml @@ -1256,7 +1256,7 @@ jobs: set -eux # CI runner (act_runner) 部署在 116 staging 本机(116.62.226.203 公网 22 未开放), # 默认走 127.0.0.1:22 本机 SSH,避免跨机网络依赖;可通过 secrets 覆盖。 - staging_host="${STAGING_SSH_HOST:-172.30.18.199}" + staging_host="${STAGING_SSH_HOST:-127.0.0.1}" staging_user="${STAGING_SSH_USER:-root}" staging_port="${STAGING_SSH_PORT:-22}" echo "Host: $staging_host" -- 2.54.0