@@ -14,6 +14,9 @@ volumes: | |||||
- name: m2 | - name: m2 | ||||
host: | host: | ||||
path: /root/.m2 | path: /root/.m2 | ||||
- name: dest | |||||
host: | |||||
path: /root/target | |||||
steps: | steps: | ||||
- name: maven | - name: maven | ||||
@@ -21,9 +24,12 @@ steps: | |||||
volumes: | volumes: | ||||
- name: m2 | - name: m2 | ||||
path: /root/.m2 | path: /root/.m2 | ||||
- name: dest | |||||
path: /root/target | |||||
commands: | commands: | ||||
- mvn package | - mvn package | ||||
- sleep 60 | |||||
- mv target/* /root/target | |||||
- sleep 100 | |||||
- name: ssh-deploy | - name: ssh-deploy | ||||
image: appleboy/drone-ssh | image: appleboy/drone-ssh | ||||