forked from wangbo/easyai
fix(release): 补齐前端变体的人工稳定标签映射
This commit is contained in:
@@ -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'}),
|
||||
|
||||
Reference in New Issue
Block a user