fix(ci): 修复deploy脚本语法错误(多余双引号) #612
Reference in New Issue
Block a user
Delete Branch "fix/deploy-script-syntax"
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?
#611 合入时引入的笔误,
echo "All images pulled.""末尾多了一个双引号,导致SSH远端sh执行时脚本报Syntax error: "(" unexpected,Deploy Staging步骤失败。修复:移除两个脚本都修掉多余的双引号。
📊 审查概览
❌ 需修改的问题(严重)
python3 scripts/ci/acr_cleanup.py命令中的--registry、--namespace、--username和--password参数。除非acr_cleanup.py脚本逻辑在本次 PR 中同步修改为从环境变量或其他默认配置读取这些值,否则该脚本将因缺少必要的连接信息和认证凭据而无法正常运行,导致镜像清理任务失败。acr_cleanup.py已更新为不再依赖这些 CLI 参数。如果脚本已支持环境变量,请确保 CI 环境中已正确配置对应变量。💡 改进建议(一般)
无
✅ 良好实践
scripts/ci_production_deploy.sh和scripts/ci_staging_deploy.sh中 echo 语句末尾多余的引号,消除了潜在的 Shell 语法错误。🤖 由 AI 代码审查机器人自动生成 | 2026-07-19 20:41:52 | 模型:
CI全绿,自动审批通过。
CI全绿,自动审批通过。
🗑️ 预览环境已清理
PR #612 已关闭或合并,对应的预览环境已被清理。