diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index 3f805fc3..9e3db9e4 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -36,7 +36,7 @@ jobs: // 打印 JSON 文件内容 console.log("certd_version:",pkg.version); // 输出 JSON 对象,可以在后续步骤中使用 - return {"version":"0.0.5"}; + echo "{version}={0.0.5}" >> $GITHUB_OUTPUT - name: Set up the working directory run: | @@ -62,4 +62,4 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - registry.cn-shenzhen.aliyuncs.com/handsfree/certd:${{steps.get_certd_version.outputs.version}} + registry.cn-shenzhen.aliyuncs.com/handsfree/certd:${{steps.get_certd_version.outputs}} diff --git a/build.trigger b/build.trigger index ec635144..d00491fd 100644 --- a/build.trigger +++ b/build.trigger @@ -1 +1 @@ -9 +1 diff --git a/packages/ui/Dockerfile b/packages/ui/Dockerfile index 3c7f3453..aee00fba 100644 --- a/packages/ui/Dockerfile +++ b/packages/ui/Dockerfile @@ -2,8 +2,7 @@ FROM node:18-alpine as builder EXPOSE 7001 WORKDIR /workspace/ COPY . /workspace/ -RUN npm install -g pnpm@8.15.7 --registry=https://registry.npmmirror.com -RUN pnpm config set registry https://registry.npmmirror.com/ +RUN npm install -g pnpm@8.15.7 RUN cd /workspace/certd-client && pnpm install && npm run build RUN cd /workspace/certd-server && pnpm install && npm run build-on-docker