diff --git a/scripts/promote-stable-release.mjs b/scripts/promote-stable-release.mjs index 6ad5919..1407811 100644 --- a/scripts/promote-stable-release.mjs +++ b/scripts/promote-stable-release.mjs @@ -7,6 +7,9 @@ import { fileURLToPath, pathToFileURL } from 'node:url'; const ROOT = resolve(dirname(fileURLToPath(import.meta.url)), '..'); const VERSION = /^\d+\.\d+\.\d+\.\d{8}(?:\.\d+)?$/; const TARGETS = { + 'hmg-ai': ['registry.cn-shanghai.aliyuncs.com/comfy-ai/one-ai','latest-hmg-ai','-hmg-ai'], + easyai: ['registry.cn-shanghai.aliyuncs.com/comfy-ai/one-ai','latest-easyai','-easyai'], + chinacuc: ['registry.cn-shanghai.aliyuncs.com/comfy-ai/one-ai','latest-chinacuc','-chinacuc'], 'server-main': ['registry.cn-shanghai.aliyuncs.com/comfy-ai/comfy-server','latest',''], web: ['registry.cn-shanghai.aliyuncs.com/comfy-ai/one-ai','latest',''], 'web-no-ssr': ['registry.cn-shanghai.aliyuncs.com/comfy-ai/one-ai','latest-no-ssr','-no-ssr'], diff --git a/scripts/promote-stable-release.test.mjs b/scripts/promote-stable-release.test.mjs index ac05437..66e9154 100644 --- a/scripts/promote-stable-release.test.mjs +++ b/scripts/promote-stable-release.test.mjs @@ -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'}),