init
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
XinWei 2024-07-29 15:37:20 +08:00
parent 9648b415b8
commit aac00eb3dd

View File

@ -6,7 +6,9 @@ steps:
image: node:16.18.1
volumes:
- name: build-file
path: /dist
path: /root/crm-build/dist # 容器内路径
host:
path: /dist # 宿主机路径
commands:
- npm install
- npm run build
@ -19,7 +21,7 @@ steps:
# commands:
# - npm run test
- name: deploy
image: nginx:1.21
commands:
- cp -r dist/. /usr/share/nginx/html
#- name: deploy
# image: nginx:1.21
# commands:
# - cp -r dist/. /usr/share/nginx/html