From f2bb06f1d0a5f6582f0dd4ede062b8dcc6fabf41 Mon Sep 17 00:00:00 2001 From: okk <153692773@qq.com> Date: Tue, 31 Jan 2023 15:17:40 +0800 Subject: [PATCH] update pipeline for master branch --- .drone.yml | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/.drone.yml b/.drone.yml index 407263e..903e48f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,21 +1,33 @@ kind: pipeline type: docker -name: master +name: 1 platform: os: linux arch: amd64 - + +workspace: + base: /opt/workspace + path: work + +volumes: +- name: m2 + host: + path: /root/.m2 + steps: - - name: maven - image: maven:3-jdk-10 - commands: - - mvn install - - name: tomcat-deploy - image: tomcat - commands: - - cp target/webssh.war /usr/local/tomcat/webapps - - bash /usr/local/tomcat/bin/start.sh +- name: maven + image: maven:3-jdk-10 + volumes: + - name: m2 + path: /root/.m2 + commands: + - mvn install +- name: tomcat-deploy + image: tomcat + commands: + - cp target/webssh.war /usr/local/tomcat/webapps + - bash /usr/local/tomcat/bin/start.sh trigger: branch: