Browse Source

update pipeline for master branch

interface
parent
commit
518a56cf40
1 changed files with 8 additions and 33 deletions
  1. +8
    -33
      .drone.yml

+ 8
- 33
.drone.yml View File

@@ -1,36 +1,11 @@

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: default
steps:

- 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/startup.sh
trigger:
branch:
- master
event:
- push
- name: ping
image: redis
commands:
- redis-cli -h cache ping
services:
- name: cache
image: redis

Loading…
Cancel
Save