@@ -1,36 +1,11 @@ | |||||
kind: pipeline | kind: pipeline | ||||
type: docker | 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: | 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 |