| Author | SHA1 | Message | Date |
|---|---|---|---|
|
|
6c46b1d1f1 | update cron config in .drone.yml | 2 years ago |
|
|
13a4edf48c | update pipeline for parallel branch | 2 years ago |
|
|
0ccb34629d | update pipeline for parallel branch | 2 years ago |
|
|
f7997e000f | update pipeline for parallel branch | 2 years ago |
|
|
2820d417d2 | update pipeline for parallel branch | 2 years ago |
|
|
ff461f4f35 | update pipeline for parallel branch | 2 years ago |
| @@ -1,46 +1,53 @@ | |||||
| kind: pipeline | kind: pipeline | ||||
| type: docker | type: docker | ||||
| name: masterpipe | |||||
| name: parallel | |||||
| platform: | platform: | ||||
| os: linux | os: linux | ||||
| arch: arm64 | arch: arm64 | ||||
| volumes: | volumes: | ||||
| - name: cache | |||||
| host: | |||||
| path: /var/lib/cache | |||||
| - name: cache | |||||
| host: | |||||
| path: /var/lib/cache | |||||
| steps: | steps: | ||||
| - name: maven | |||||
| - name: maventask1 | |||||
| image: maven:3-jdk-10 | image: maven:3-jdk-10 | ||||
| volumes: | volumes: | ||||
| - name: cache | |||||
| path: /root/.m2 | |||||
| - name: cache | |||||
| path: /root/.m2 | |||||
| commands: | commands: | ||||
| - mvn compile | |||||
| - name: test | |||||
| - echo "clean target" | |||||
| - name: maventask2 | |||||
| image: maven:3-jdk-10 | image: maven:3-jdk-10 | ||||
| volumes: | volumes: | ||||
| - name: cache | |||||
| path: /root/.m2 | |||||
| - name: cache | |||||
| path: /root/.m2 | |||||
| commands: | commands: | ||||
| - mvn test | |||||
| - echo "install dependency" | |||||
| - name: maven | |||||
| image: maven:3-jdk-10 | |||||
| volumes: | |||||
| - name: cache | |||||
| path: /root/.m2 | |||||
| commands: | |||||
| - mvn compile | |||||
| depends_on: | |||||
| - maventask1 | |||||
| - maventask2 | |||||
| - name: 远程主机部署 | - name: 远程主机部署 | ||||
| image: appleboy/drone-ssh | |||||
| image: appleboy/drone-ssh:linux-arm64 | |||||
| settings: | settings: | ||||
| host: | |||||
| host: | |||||
| from_secret: ip | from_secret: ip | ||||
| username: | |||||
| username: | |||||
| from_secret: name | from_secret: name | ||||
| password: | |||||
| password: | |||||
| from_secret: pwd | from_secret: pwd | ||||
| port: 22 | port: 22 | ||||
| script: | script: | ||||
| - chmod +x /home/deploy.sh | |||||
| - ./home/deploy.sh | |||||
| - chmod +x /home/deploy.sh | |||||
| - nohup bash /home/deploy.sh & | |||||
| trigger: | trigger: | ||||
| branch: | branch: | ||||
| - master | |||||
| - parallel | |||||
| event: | event: | ||||
| - push | - push | ||||
| - pull_request | |||||