.drone.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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: jaikuai/npm-mvn
  15. commands:
  16. - mvn -T 1C install -Dmaven.test.skip=true -Dmaven.repo.local=/drone/src/.m2/repository -Dmaven.compile.fork=true package
  17. - name: rebuild-cache
  18. image: drillster/drone-volume-cache
  19. volumes:
  20. - name: cache
  21. path: /cache
  22. settings:
  23. rebuild: true
  24. mount:
  25. - .m2
  26. - name: docker-zk-service-center
  27. image: plugins/docker:20.14.0-linux-amd64
  28. pull: false
  29. settings:
  30. purge: false
  31. add_host:
  32. - nas.fast-fun.cn:192.168.0.40
  33. tags:
  34. - v1.0.0.${DRONE_BUILD_NUMBER}
  35. registry: nas.fast-fun.cn:5000
  36. insecure: true
  37. dockerfile: Dockerfile
  38. mirror: https://1u6db9h5.mirror.aliyuncs.com
  39. repo: nas.fast-fun.cn:5000/zk/zk-service-center
  40. volumes:
  41. - name: cache
  42. host:
  43. path: /home/drone/cache