chore: github action build image

pull/101/head
xiaojunnuo 2024-07-23 22:48:30 +08:00
parent ffddb3b4ac
commit d456ff9830
3 changed files with 4 additions and 5 deletions

View File

@ -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}}

View File

@ -1 +1 @@
9
1

View File

@ -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