feat(ci): Staging部署接入健康检查+自动回滚框架 #323
Reference in New Issue
Block a user
Delete Branch "feat/staging-healthcheck-ci-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?
变更内容
新增文件
scripts/ci_staging_healthcheck.sh- CI专用健康检查+自动回滚脚本(适配Watchtower模式)scripts/deploy_notify.py- 部署结果通知脚本(飞书卡片格式,支持 success/failure/rollback 三种状态)修改文件
.gitea/workflows/ci-cd.yml- deploy-staging阶段的smoke test替换为健康检查+自动回滚功能说明
健康检查
/health端点/docs文档端点自动回滚
:staging镜像的 digest:stagingtag 改回旧版本通知机制
CI_NOTIFY_WEBHOOK发送飞书卡片通知环境变量依赖
REGISTRY_TOKEN- 已有,回滚操作镜像推送需要CI_NOTIFY_WEBHOOK- 通知用,未配置则自动跳过(不影响部署)验证
CI全绿,自动审批通过。
c9863f3546to84db18a959