kind: pipeline type: docker name: 1 platform: os: linux arch: arm64 steps: - name: maventask1 image: maven:3-jdk-10 volumes: - name: cache path: /root/.m2 commands: - echo "clean target" - name: maventask2 image: maven:3-jdk-10 volumes: - name: cache path: /root/.m2 commands: - echo "install dependency" - name: maven image: maven:3-jdk-10 volumes: - name: cache path: /root/.m2 commands: - mvn compile depends_on: - maventask1 - maventask2 - name: 远程主机部署 image: appleboy/drone-ssh:linux-arm64 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 trigger: branch: - parallel event: - push