| @@ -1,6 +1,6 @@ | |||||
| kind: pipeline | kind: pipeline | ||||
| type: docker | type: docker | ||||
| name: 1 | |||||
| name: dockerpipe | |||||
| platform: | platform: | ||||
| os: linux | os: linux | ||||
| arch: arm64 | arch: arm64 | ||||
| @@ -12,24 +12,14 @@ steps: | |||||
| path: /root/.m2 | path: /root/.m2 | ||||
| commands: | commands: | ||||
| - mvn compile | - mvn compile | ||||
| - name: 远程主机部署 | |||||
| image: appleboy/drone-ssh:linux-arm64 | |||||
| - name: docker | |||||
| image: plugins/docker | |||||
| settings: | settings: | ||||
| host: | |||||
| from_secret: ip | |||||
| username: | |||||
| from_secret: name | |||||
| password: | |||||
| from_secret: pwd | |||||
| port: 22 | |||||
| script: | |||||
| - chmod +x /home/deploy.sh | |||||
| - bash /home/deploy.sh | |||||
| volumes: | |||||
| - name: cache | |||||
| host: | |||||
| path: /var/lib/cache | |||||
| username: 153692771@qq.com | |||||
| password: Docker199637 | |||||
| repo: foo/bar | |||||
| tags: latest | |||||
| trigger: | trigger: | ||||
| branch: | branch: | ||||
| - docker | - docker | ||||