From 8e0f98b9b2a0e50969fbd5ef32d0e01bc96921dd Mon Sep 17 00:00:00 2001 From: okk <153692773@qq.com> Date: Tue, 31 Jan 2023 17:55:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index e29679e..c4f543c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,6 +14,9 @@ volumes: - name: m2 host: path: /root/.m2 +- name: dest + host: + path: /root/target steps: - name: maven @@ -21,9 +24,12 @@ steps: volumes: - name: m2 path: /root/.m2 + - name: dest + path: /root/target commands: - mvn package - - sleep 60 + - mv target/* /root/target + - sleep 100 - name: ssh-deploy image: appleboy/drone-ssh