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

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