You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

.drone.yml 840 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. kind: pipeline
  2. type: docker
  3. name: 1
  4. platform:
  5. os: linux
  6. arch: arm64
  7. steps:
  8. - name: maventask1
  9. image: maven:3-jdk-10
  10. volumes:
  11. - name: cache
  12. path: /root/.m2
  13. commands:
  14. - echo "clean target"
  15. - name: maventask2
  16. image: maven:3-jdk-10
  17. volumes:
  18. - name: cache
  19. path: /root/.m2
  20. commands:
  21. - echo "install dependency"
  22. - name: maven
  23. image: maven:3-jdk-10
  24. volumes:
  25. - name: cache
  26. path: /root/.m2
  27. commands:
  28. - mvn compile
  29. depends_on:
  30. - maventask1
  31. - maventask2
  32. - name: 远程主机部署
  33. image: appleboy/drone-ssh:linux-arm64
  34. settings:
  35. host:
  36. from_secret: ip
  37. username:
  38. from_secret: name
  39. password:
  40. from_secret: pwd
  41. port: 22
  42. script:
  43. - chmod +x /home/deploy.sh
  44. - bash /home/deploy.sh
  45. trigger:
  46. branch:
  47. - parallel
  48. event:
  49. - push