mirror of https://github.com/certd/certd
chore: github action build image
parent
ffddb3b4ac
commit
d456ff9830
|
@ -36,7 +36,7 @@ jobs:
|
||||||
// 打印 JSON 文件内容
|
// 打印 JSON 文件内容
|
||||||
console.log("certd_version:",pkg.version);
|
console.log("certd_version:",pkg.version);
|
||||||
// 输出 JSON 对象,可以在后续步骤中使用
|
// 输出 JSON 对象,可以在后续步骤中使用
|
||||||
return {"version":"0.0.5"};
|
echo "{version}={0.0.5}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Set up the working directory
|
- name: Set up the working directory
|
||||||
run: |
|
run: |
|
||||||
|
@ -62,4 +62,4 @@ jobs:
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
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}}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
9
|
1
|
||||||
|
|
|
@ -2,8 +2,7 @@ FROM node:18-alpine as builder
|
||||||
EXPOSE 7001
|
EXPOSE 7001
|
||||||
WORKDIR /workspace/
|
WORKDIR /workspace/
|
||||||
COPY . /workspace/
|
COPY . /workspace/
|
||||||
RUN npm install -g pnpm@8.15.7 --registry=https://registry.npmmirror.com
|
RUN npm install -g pnpm@8.15.7
|
||||||
RUN pnpm config set registry https://registry.npmmirror.com/
|
|
||||||
|
|
||||||
RUN cd /workspace/certd-client && pnpm install && npm run build
|
RUN cd /workspace/certd-client && pnpm install && npm run build
|
||||||
RUN cd /workspace/certd-server && pnpm install && npm run build-on-docker
|
RUN cd /workspace/certd-server && pnpm install && npm run build-on-docker
|
||||||
|
|
Loading…
Reference in New Issue