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 715 B

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