fix(ci): registry经本机隧道127.0.0.1:5001
deploy-test / build-and-deploy-test (push) Failing after 46s

This commit is contained in:
TomyS committed 2026-11-06 18:41:37 +08:00
1 parent 16311b3bd6
commit 18cf15c43a
1 file changed
+5 -5
+5 -5
View File
@@ -1,4 +1,4 @@
# 2026-11-06 t3修复稿(未合入,需Token+Secrets后由用户合入):REGISTRY主迁38.76.218.110:5000;新增Secrets非空门槛
# 2026-11-06 t3修复稿(未合入,需Token+Secrets后由用户合入):REGISTRY主迁127.0.0.1:5001;新增Secrets非空门槛
# =============================================================================
# TIANAI CAPTCHA PLATFORM — 测试环境自动部署
# 触发:push 到 master(或手动 workflow_dispatch)
@@ -18,8 +18,8 @@ concurrency:
cancel-in-progress: false
env:
REGISTRY: 38.76.218.110:5000
IMAGE: 38.76.218.110:5000/tianai-captcha-platform
REGISTRY: 127.0.0.1:5001
IMAGE: 127.0.0.1:5001/tianai-captcha-platform
jobs:
build-and-deploy-test:
@@ -102,7 +102,7 @@ jobs:
$SSH_CMD '
set -e
echo "===== 拉取镜像 ====="
docker pull 38.76.218.110:5000/tianai-captcha-platform:test
docker pull 127.0.0.1:5001/tianai-captcha-platform:test
echo "===== 重建后端容器 ====="
docker rm -f tianai-captcha 2>/dev/null || true
docker run -d --name tianai-captcha \
@@ -110,7 +110,7 @@ jobs:
--restart unless-stopped \
-p 127.0.0.1:18200:18200 \
-v /opt/tianai/config:/app/config \
38.76.218.110:5000/tianai-captcha-platform:test
127.0.0.1:5001/tianai-captcha-platform:test
echo "===== 部署前端 SDK ====="
mkdir -p /opt/tianai/web/tac
'