This commit is contained in:
mozzie 2023-03-06 11:01:56 +08:00
parent b9e421cb2e
commit 0032bd680a

View File

@ -6,6 +6,9 @@ name: backset.cn deploy
steps: steps:
- name: 构建 - name: 构建
image: node:16.19-alpine image: node:16.19-alpine
volumes:
- name: dist-web
path: ./dist
commands: commands:
- node -v - node -v
- npm -v - npm -v
@ -14,5 +17,9 @@ steps:
- ls - ls
- pnpm i - pnpm i
- pnpm build:web - pnpm build:web
- ls
- cp -r ./apps/web/dist/ /www/wwwroot/nginx/html/backset.cn # 宿主机目录
volumes:
- name: dist-web
host:
path: /www/wwwroot/nginx/html/backset.cn