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

123456789101112131415161718192021222324252627282930313233343536
  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. commands:
  11. - mvn compile
  12. - name: maven
  13. image: maven:3-jdk-10
  14. commands:
  15. - mvn test
  16. - name: 远程主机部署
  17. image: appleboy/drone-ssh
  18. settings:
  19. host:
  20. from_secret: ip
  21. username:
  22. from_secret: name
  23. password:
  24. from_secret: pwd
  25. port: 22
  26. script:
  27. - chmod +x /home/deploy.sh
  28. - ./home/deploy.sh
  29. trigger:
  30. branch:
  31. - master
  32. event:
  33. - push
  34. - pull_request