feat(ci): staging部署脚本增加Registry登录和拉镜像重试机制 #390
Reference in New Issue
Block a user
Delete Branch "feat/registry-retry-stability"
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?
背景
针对环境偶发问题治理第1、3项:Registry网络抖动导致部署偶发失败。
改动
retry_cmd通用重试函数:支持指定最大重试次数和初始退避时间,指数退避retry_docker_login:Registry登录失败自动重试3次(5s/10s/20s退避)retry_docker_pull:镜像拉取失败自动重试3次(10s/20s/40s退避)影响范围
仅
scripts/ci_staging_deploy.sh,Staging部署脚本。关联
环境偶发问题治理 - Registry登录加固 + SSH部署拉镜像重试
CI全绿,自动审批通过。