feat(ci): staging部署脚本增加本地自动回滚能力 #385
Reference in New Issue
Block a user
Delete Branch "feat/staging-auto-rollback"
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部署只有CI侧公网健康检查失败后的SSH回滚(第二道防线)。但如果容器刚启动就挂了(比如启动命令错、依赖缺失),要等CI侧健康检查超时才回滚,浪费时间。
改动
在
scripts/ci_staging_deploy.sh(staging服务器本地执行的部署脚本)中增加本地自动回滚能力:docker run失败 → 立即回滚两道防线
f544ee501ftoe838b3595ee838b3595eto5a34e551345a34e55134to6d4b9a0e51CI全绿,自动审批通过。