This commit is contained in:
parent
f9030082fe
commit
eec5df58d5
10
.drone.yml
10
.drone.yml
@ -6,9 +6,7 @@ steps:
|
|||||||
image: node:16.18.1
|
image: node:16.18.1
|
||||||
volumes:
|
volumes:
|
||||||
- name: build-file
|
- name: build-file
|
||||||
path: /build/dist # 容器内路径
|
path: /build/dist
|
||||||
host:
|
|
||||||
path: /root/crm-build/dist # 宿主机路径
|
|
||||||
commands:
|
commands:
|
||||||
- npm install
|
- npm install
|
||||||
- npm run build
|
- npm run build
|
||||||
@ -25,4 +23,8 @@ steps:
|
|||||||
#- 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
|
||||||
|
volumes: # 定义流水线挂载目录,用于共享数据
|
||||||
|
- name: build-file
|
||||||
|
host:
|
||||||
|
path: /root/crm-build/dist # 从宿主机中挂载的目录
|
Loading…
Reference in New Issue
Block a user