|
@@ -11,19 +11,19 @@ volumes: |
|
|
path: /var/lib/cache |
|
|
path: /var/lib/cache |
|
|
steps: |
|
|
steps: |
|
|
- name: maven |
|
|
- name: maven |
|
|
image: maven:3-jdk-8 |
|
|
|
|
|
|
|
|
image: maven:3-jdk-10 |
|
|
volumes: |
|
|
volumes: |
|
|
- name: cache |
|
|
- name: cache |
|
|
path: /root/.m2 |
|
|
path: /root/.m2 |
|
|
commands: |
|
|
commands: |
|
|
- mvn compile |
|
|
- mvn compile |
|
|
- name: test |
|
|
- name: test |
|
|
image: maven:3-jdk-8 |
|
|
|
|
|
|
|
|
image: maven:3-jdk-10 |
|
|
volumes: |
|
|
volumes: |
|
|
- name: cache |
|
|
- name: cache |
|
|
path: /root/.m2 |
|
|
path: /root/.m2 |
|
|
commands: |
|
|
commands: |
|
|
- mvn test |
|
|
|
|
|
|
|
|
- mvn test |
|
|
|
|
|
|
|
|
- name: 远程主机部署 |
|
|
- name: 远程主机部署 |
|
|
image: appleboy/drone-ssh:linux-arm64 |
|
|
image: appleboy/drone-ssh:linux-arm64 |
|
@@ -37,7 +37,7 @@ steps: |
|
|
port: 22 |
|
|
port: 22 |
|
|
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 |
|
|