From b17fd0c724a2228f57a5aa0347b1f40a9dee4120 Mon Sep 17 00:00:00 2001 From: chufan Date: Wed, 16 Oct 2024 16:06:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D`bundle`=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E6=9E=84=E5=BB=BA=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/bundle | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/bundle b/scripts/bundle index 20c5635..63aa263 100755 --- a/scripts/bundle +++ b/scripts/bundle @@ -7,25 +7,24 @@ * - ./scripts/bundle --proxy */ -import {createRequire} from 'node:module' +import { createRequire } from 'node:module' import process from 'node:process' import { - VipDockerAddress, + OPEN_SOURCE_ADDRESS, buildImage, getRecentGitCommit, } from '@142vip/utils' - (async () => { try { // 获取package.json文件 const pkg = createRequire(import.meta.url)('../package.json') // 镜像地址 - const imageName = `${VipDockerAddress}/docs:${pkg.name}-${pkg.version}` + const imageName = `${OPEN_SOURCE_ADDRESS.DOCKER_ALIYUNCS_VIP}/docs:${pkg.name}-${pkg.version}` // 最近一次提交信息 - const {hash: gitHash} = await getRecentGitCommit() + const { hash: gitHash } = await getRecentGitCommit() // 构建镜像 await buildImage({ @@ -41,12 +40,13 @@ import { ['HOME_PAGE', pkg.authorInfo.homePage], ['GIT_HASH', gitHash], ], - memory:20000, + memory: 20000, push: true, delete: true, logger: true, }) - } catch (e) { + } + catch (e) { console.log('异常信息:', e) } })()