feat(ci): Staging部署从Watchtower模式改为SSH push模式 #337
Reference in New Issue
Block a user
Delete Branch "feat/staging-ssh-deploy"
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?
背景
Staging 当前使用 Watchtower pull 模式部署,存在以下问题:
改造内容
1. 新增
scripts/ci_staging_deploy.shStaging SSH 部署脚本,在 staging 服务器上执行:
2. 改造
scripts/ci_staging_healthcheck.sh从 Watchtower 模式改为 SSH 模式:
3. 修改
ci-cd.ymldeploy-staging job验证方式
合并后观察 develop 分支的 Deploy Staging job:
风险与回滚
Review 通过 ✅
整体架构:
ci-cd.yml 变更:
ci_staging_deploy.sh:
ci_staging_healthcheck.sh:
CI 全绿,可以合并。合并后建议验证一次 develop 上的 Deploy Staging 完整跑通。