fix(deploy): 系统更新 - 非正式镜像标签可在线更新到正式版

sha-* 等非正式标签不再被字典序判成比 vX.Y.Z 更新;健康检查对非正式目标版本只确认服务就绪;管理后台更新页并排展示当前运行与最新发布版本并标注非正式版本
This commit is contained in:
ddCat committed 2026-09-18 08:50:18 +08:00
1 parent 8d99e0adbb
commit 7d3f4ffc50
8 files changed
+99 -11

No files matched your search

@@ -12,6 +12,10 @@ func TestCompareVersions(t *testing.T) {
{"v1.2.0-preview.3", "v1.2.0", -1},
{"v1.2.1", "v1.2.0", 1},
{"v1.2.0", "v1.2.0", 0},
{"vsha-5509b17", "v1.5.0", -1},
{"sha-5509b17", "v1.5.0", -1},
{"v1.5.0", "vsha-5509b17", 1},
{"v1.2.9", "v1.5.0", -1},
}
for _, test := range tests {
got := CompareVersions(test.left, test.right)