.drone.yml 888 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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-build
  27. image: plugins/docker
  28. settings:
  29. tags:
  30. - latest
  31. - 1.0.${DRONE_BUILD_NUMBER}
  32. registry: nas.fast-fun.cn:5000
  33. insecure: true
  34. repo: nas.fast-fun.cn:5000/zk/station-control-tts
  35. volumes:
  36. - name: cache
  37. host:
  38. path: /home/drone/cache