From 6691ac34e05c9e3ae98c7310266163a088c34dee Mon Sep 17 00:00:00 2001 From: easyai03 Date: Wed, 14 Oct 2026 08:39:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(release):=20=E8=A1=A5=E9=BD=90=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E5=8F=98=E4=BD=93=E7=9A=84=E4=BA=BA=E5=B7=A5=E7=A8=B3?= =?UTF-8?q?=E5=AE=9A=E6=A0=87=E7=AD=BE=E6=98=A0=E5=B0=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/promote-stable-release.mjs | 3 +++ scripts/promote-stable-release.test.mjs | 2 ++ 2 files changed, 5 insertions(+) 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'}),