Browse Source

更新 '.drone.yml'

interface
parent
commit
6a30f85175
1 changed files with 10 additions and 4 deletions
  1. +10
    -4
      .drone.yml

+ 10
- 4
.drone.yml View File

@@ -14,13 +14,20 @@ volumes:
- name: m2
host:
path: /root/.m2
steps:

volumes:
- name: workspace
host:
path: /opt/workspace

steps:
- name: maven
image: maven:3-jdk-10
volumes:
- name: m2
path: /root/.m2
- name: workspace
path: /opt/workspace
commands:
- mvn package
@@ -30,12 +37,11 @@ steps:
host:
- 113.246.243.98
username: root
password:
from_secret: wang199637
password: wang199637
port: 4221
command_timeout: 2m
script:
- docker run -v target/webssh.war:/usr/local/tomcat/webapps -d tomcat
- docker run -v /opt/workspace/work/target/:/usr/local/tomcat/webapps/ -p61001:8080 -d tomcat
trigger:
branch:
- master


Loading…
Cancel
Save