Browse Source

update drone yml

wangwei-patch-1
weishao 1 year ago
parent
commit
35dddc0826
1 changed files with 14 additions and 5 deletions
  1. +14
    -5
      .drone.yml

+ 14
- 5
.drone.yml View File

@@ -1,4 +1,3 @@

kind: pipeline
type: docker
name: 1
@@ -6,17 +5,27 @@ platform:
os: linux
arch: amd64
steps:

- name: maven
image: maven:3-jdk-10
volumes:
- name: cache
path: /root/.m2
commands:
- mvn install -DskipTests=true
- mvn install -DskipTests=true

- name: run
image: maven:3-jdk-8
volumes:
- name: cache
path: /root/.m2
commands:
- mvn tomcat7:run
- nohup mvn tomcat7:run &

volumes:
- name: cache
host:
path: /var/lib/cache

trigger:
branch:
- master


Loading…
Cancel
Save