This commit is contained in:
parent
9648b415b8
commit
aac00eb3dd
12
.drone.yml
12
.drone.yml
@ -6,7 +6,9 @@ steps:
|
|||||||
image: node:16.18.1
|
image: node:16.18.1
|
||||||
volumes:
|
volumes:
|
||||||
- name: build-file
|
- name: build-file
|
||||||
path: /dist
|
path: /root/crm-build/dist # 容器内路径
|
||||||
|
host:
|
||||||
|
path: /dist # 宿主机路径
|
||||||
commands:
|
commands:
|
||||||
- npm install
|
- npm install
|
||||||
- npm run build
|
- npm run build
|
||||||
@ -19,7 +21,7 @@ steps:
|
|||||||
# commands:
|
# commands:
|
||||||
# - npm run test
|
# - npm run test
|
||||||
|
|
||||||
- name: deploy
|
#- name: deploy
|
||||||
image: nginx:1.21
|
# image: nginx:1.21
|
||||||
commands:
|
# commands:
|
||||||
- cp -r dist/. /usr/share/nginx/html
|
# - cp -r dist/. /usr/share/nginx/html
|
Loading…
Reference in New Issue
Block a user