.drone.yml 896 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. kind: pipeline
  2. name: default
  3. steps:
  4. - name: restore-cache
  5. image: drillster/drone-volume-cache
  6. volumes:
  7. - name: cache
  8. path: /cache
  9. settings:
  10. restore: true
  11. mount:
  12. - .m2
  13. - name: build
  14. image: maven
  15. pull: false
  16. commands:
  17. - mvn install -Dmaven.repo.local=/drone/src/.m2/repository -Dmaven.test.skip=true package
  18. - name: rebuild-cache
  19. image: drillster/drone-volume-cache
  20. volumes:
  21. - name: cache
  22. path: /cache
  23. settings:
  24. rebuild: true
  25. mount:
  26. - .m2
  27. - name: docker
  28. image: plugins/docker
  29. settings:
  30. tags:
  31. - latest
  32. - 1.1.${DRONE_BUILD_NUMBER}
  33. registry: rpi.it5000.com:5000
  34. insecure: true
  35. repo: 192.168.0.133:5000/pdms-oss-api
  36. mount:
  37. - /var/lib/docker
  38. volumes:
  39. - name: cache
  40. host:
  41. path: C:\Users\zhl\drone\drone\cache