mirror of https://github.com/certd/certd
chore: github action build
parent
a96d5839b2
commit
6e5133f6b8
|
@ -53,9 +53,9 @@ jobs:
|
||||||
password: ${{ secrets.aliyun_cs_password }}
|
password: ${{ secrets.aliyun_cs_password }}
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6.5.0
|
||||||
with:
|
with:
|
||||||
platforms: linux/amd64,linux/arm64
|
# platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
# registry.cn-shenzhen.aliyuncs.com/handsfree/certd:latest
|
# registry.cn-shenzhen.aliyuncs.com/handsfree/certd:latest
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM registry.cn-shenzhen.aliyuncs.com/handsfree/node:18-alpine as builder
|
FROM node:18-alpine as builder
|
||||||
EXPOSE 7001
|
EXPOSE 7001
|
||||||
WORKDIR /workspace/
|
WORKDIR /workspace/
|
||||||
COPY . /workspace/
|
COPY . /workspace/
|
||||||
|
@ -11,7 +11,7 @@ RUN cd /workspace/certd-server && pnpm install && npm run build-on-docker
|
||||||
RUN cp /workspace/certd-client/dist/* /workspace/certd-server/public/ -rf
|
RUN cp /workspace/certd-client/dist/* /workspace/certd-server/public/ -rf
|
||||||
|
|
||||||
|
|
||||||
FROM registry.cn-shenzhen.aliyuncs.com/handsfree/node:18-alpine
|
FROM node:18-alpine
|
||||||
WORKDIR /app/
|
WORKDIR /app/
|
||||||
COPY --from=builder /workspace/certd-server/ /app/
|
COPY --from=builder /workspace/certd-server/ /app/
|
||||||
ENV TZ Asia/Shanghai
|
ENV TZ Asia/Shanghai
|
||||||
|
|
Loading…
Reference in New Issue