.drone.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. kind: pipeline
  2. name: default
  3. steps:
  4. - name: restore-cache
  5. image: drillster/drone-volume-cache
  6. settings:
  7. restore: true
  8. mount:
  9. - ./repository
  10. volumes:
  11. - name: cache
  12. path: /cache
  13. - name: mvn-package
  14. image: maven:3.8.4-jdk-8
  15. commands:
  16. - mvn clean package -Dmaven.test.skip=true -Dmaven.repo.local=./repository -s ./setting.xml
  17. - name: rebuild-cache
  18. image: drillster/drone-volume-cache
  19. settings:
  20. rebuild: true
  21. mount:
  22. - ./repository
  23. volumes:
  24. - name: cache
  25. path: /cache
  26. - name: docker-zk-station-server
  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-station-server
  40. volumes:
  41. - name: cache
  42. host:
  43. path: /home/drone/cache