fix(release): 补齐前端变体的人工稳定标签映射

This commit is contained in:
2026-10-14 08:39:50 +08:00
parent 8c1eadc5ea
commit 6691ac34e0
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -44,6 +44,8 @@ test('未明确确认同一个版本及浮动版本都不调用Docker',()=>{
});
test('候选必须包括SSR/noSSR,并拒绝重复、错误镜像和浮动源标签',()=>{
const variant = {...manifest.components[1],key:'hmg-ai',tag:version+'-hmg-ai'};
assert.equal(promotionPlan({...manifest,components:[...manifest.components,variant]},version,version).at(-1).stable,variant.image+':latest-hmg-ai');
for (const components of [manifest.components.filter(item=>item.key!=='web-no-ssr'),
[...manifest.components,manifest.components[0]],
manifest.components.map((item,index)=>index?item:{...item,image:'wrong/image'}),