.drone.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. clone:
  2. git:
  3. image: plugins/git
  4. tags: true
  5. pipeline:
  6. build:
  7. image: docker.finogeeks.club/build/gradle:5.6.2
  8. pull: true
  9. volumes:
  10. - /mnt/data/drone/cache/gradle:/my_silly_gradle_cache
  11. commands:
  12. - gradle --no-daemon --gradle-user-home=/my_silly_gradle_cache clean assemble
  13. docker_latest:
  14. image: docker.finogeeks.club/drone/docker
  15. repo: docker.finogeeks.club/swan/data-analysis
  16. dockerfile: Dockerfile
  17. when:
  18. branch: [dev]
  19. event: [push, pull_request]
  20. docker_tag:
  21. image: docker.finogeeks.club/drone/docker
  22. repo: docker.finogeeks.club/swan/data-analysis
  23. dockerfile: Dockerfile
  24. default_tags: true
  25. when:
  26. event: [tag]
  27. gen_dev_api_doc:
  28. image: plugins/downstream
  29. server: https://drone.finogeeks.club
  30. token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZXh0IjoieWFuZ3RhbyIsInR5cGUiOiJ1c2VyIn0.0IiIB0dIq6ZF_pKuhO4-Z8-8vGiUmmb2g-0Tr-sN3Xs
  31. fork: true
  32. repositories:
  33. - business/doc@dev
  34. when:
  35. status: [success]
  36. branch: [dev]
  37. gen_api_doc:
  38. image: plugins/downstream
  39. server: https://drone.finogeeks.club
  40. token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZXh0IjoieWFuZ3RhbyIsInR5cGUiOiJ1c2VyIn0.0IiIB0dIq6ZF_pKuhO4-Z8-8vGiUmmb2g-0Tr-sN3Xs
  41. fork: true
  42. repositories:
  43. - business/doc
  44. when:
  45. status: [success]
  46. event: [tag]