fix: 统一前端Harbor镜像发布与拉取部署

This commit is contained in:
Yvan
2026-11-05 13:08:56 +08:00
parent 5f6e893457
commit af2a2a44b3
13 changed files with 201 additions and 61 deletions
+2
View File
@@ -7,6 +7,8 @@ import { execFileSync, spawnSync } from 'node:child_process'
import { parseArgs } from 'node:util'
export const frontendRoot = fileURLToPath(new URL('../', import.meta.url))
export const imageRepository = 'harbor.fuhua91.com/game/sw2'
export const frontendImage = tag => `${imageRepository}:${validTag(tag)}`
export const options = (definitions) => parseArgs({
options: { help: { type: 'boolean' }, ...definitions },
args: process.argv.slice(2).filter((arg, i) => !(i === 0 && arg === '--'))