ci: 修正 staging 默认部署目标为 116.62.226.203:22(staging业务机) #2065
Reference in New Issue
Block a user
Delete Branch "fix/ci-staging-116-port22-v2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
背景
PR #2064 把 CI 默认 STAGING_SSH_HOST/PORT 改成了
47.98.113.167:22222,但经运维再次确认搞反了:之前 push pipeline #55954 把 SSH 打到 116 并因"找不到 xiaoxia-postgres-staging"失败,是因为 116 上的 staging 基础容器(postgres/redis)还没起来,不是连错机器。
变更
.gitea/workflows/ci-pipeline.yml默认值改回116.62.226.203:22,注释同步修正scripts/ci_staging_healthcheck.sh默认值与注释同步47.98.113.167:22222保持不变(正确)配套运维准备(已完成)
xiaoxia-postgres-staging(postgres:16, 127.0.0.1:5434→5432)和xiaoxia-redis-staging(redis:7, 127.0.0.1:6381→6379),均 healthy/root/.ssh/authorized_keys已补上staging_deploy_key公钥(之前缺失导致 CI job 容器内公网 SSH 被拒)ssh root@116.62.226.203 -p 22 -i staging_deploy_key成功,hostname 返回iZbp15fchyez91r4b3ok74Z,docker 命令可正常执行。无需--network host或host.docker.internal绕过。🚀 预览环境已部署
🗑️ 预览环境已清理
PR #2065 已关闭或合并,对应的预览环境已被清理。