kind: pipeline type: docker name: 1 platform: os: linux arch: amd64 workspace: base: /opt/workspace path: work volumes: - name: m2 host: path: /root/.m2 - name: dest host: path: /root/target steps: - name: maven image: maven:3-jdk-10 volumes: - name: m2 path: /root/.m2 - name: dest path: /root/target commands: - mvn package - mv target/webssh.war /root/target/ - sleep 10 - name: ssh-deploy image: appleboy/drone-ssh settings: host: - 113.246.243.98 username: root password: wang199637 port: 4221 command_timeout: 2m script: - docker run -v /root/target/:/usr/local/tomcat/webapps/ -p61002:8080 -d tomcat:9.0 trigger: branch: - master event: - push