fix(ci): 拉取代码用宿主 IP+端口替代内网域名
部署到群晖 / deploy (push) Failing after 31s

git.ymxixi.space 是局域网 DNS 里的内网域名,act job 容器
默认 DNS 解析不到。直接用 192.168.1.66:3000(gitea 容器
端口映射)走 docker bridge → 宿主 LAN,最稳。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
yuming
2026-05-12 09:03:23 +08:00
parent 93ef7d54f5
commit 482908e655
+2 -2
View File
@@ -66,10 +66,10 @@ jobs:
sleep 3
- name: 拉取代码
# 直接走局域网 gitea,不再依赖任何外网 action mirror
# 直接走宿主 IP+端口,避免 act job 容器解析不了 git.ymxixi.space 内网域名
run: |
git init
git remote add origin http://git.ymxixi.space/adminym/telegram-downloader.git
git remote add origin http://192.168.1.66:3000/adminym/telegram-downloader.git
# 优先按本次触发的 commit SHA 拉,确保部署的是 push 上来的那次
git fetch --depth 1 origin "$GITHUB_SHA"
git checkout FETCH_HEAD