|
@@ -17,13 +17,6 @@ steps: |
|
|
path: /root/.m2 |
|
|
path: /root/.m2 |
|
|
commands: |
|
|
commands: |
|
|
- mvn compile |
|
|
- mvn compile |
|
|
- name: test |
|
|
|
|
|
image: maven:3-jdk-8 |
|
|
|
|
|
volumes: |
|
|
|
|
|
- name: cache |
|
|
|
|
|
path: /root/.m2 |
|
|
|
|
|
commands: |
|
|
|
|
|
- mvn test |
|
|
|
|
|
|
|
|
|
|
|
- name: 远程主机部署 |
|
|
- name: 远程主机部署 |
|
|
image: appleboy/drone-ssh:linux-arm64 |
|
|
image: appleboy/drone-ssh:linux-arm64 |
|
@@ -38,7 +31,6 @@ steps: |
|
|
script: |
|
|
script: |
|
|
- chmod +x /home/deploy.sh |
|
|
- chmod +x /home/deploy.sh |
|
|
- nohup bash /home/deploy.sh & |
|
|
- nohup bash /home/deploy.sh & |
|
|
|
|
|
|
|
|
trigger: |
|
|
trigger: |
|
|
branch: |
|
|
branch: |
|
|
- master |
|
|
- master |
|
|