From eec5df58d55e471b22cab037e804d901d112be7b Mon Sep 17 00:00:00 2001 From: XinWei <2718030729@qq.com> Date: Mon, 29 Jul 2024 17:08:40 +0800 Subject: [PATCH] 'init' --- .drone.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 82214d6..e5202cc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,9 +6,7 @@ steps: image: node:16.18.1 volumes: - name: build-file - path: /build/dist # 容器内路径 - host: - path: /root/crm-build/dist # 宿主机路径 + path: /build/dist commands: - npm install - npm run build @@ -25,4 +23,8 @@ steps: #- name: deploy # image: nginx:1.21 # commands: -# - cp -r dist/. /usr/share/nginx/html \ No newline at end of file +# - cp -r dist/. /usr/share/nginx/html +volumes: # 定义流水线挂载目录,用于共享数据 + - name: build-file + host: + path: /root/crm-build/dist # 从宿主机中挂载的目录 \ No newline at end of file