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 kind: pipeline
type: docker type: docker
name: 1 name: 1
@@ -6,17 +5,27 @@ platform:
os: linux os: linux
arch: amd64 arch: amd64
steps: steps:

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


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

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

trigger: trigger:
branch: branch:
- master - master


Loading…
Cancel
Save