.drone.yml 902 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. - ./node_modules
  13. - name: build
  14. image: node:16.15
  15. commands:
  16. - npm config set registry http://nexus.fast-fun.cn:92/repository/npm-public/
  17. - npm install
  18. - npm run build:prod
  19. - name: rebuild-cache
  20. image: drillster/drone-volume-cache
  21. volumes:
  22. - name: cache
  23. path: /cache
  24. settings:
  25. rebuild: true
  26. mount:
  27. - ./node_modules
  28. - name: docker-web
  29. image: plugins/docker
  30. settings:
  31. tags:
  32. - latest
  33. - 1.0.${DRONE_BUILD_NUMBER}
  34. registry: nas.fast-fun.cn:5000
  35. insecure: true
  36. repo: nas.fast-fun.cn:5000/zk/station-log-frontend
  37. volumes:
  38. - name: cache
  39. host:
  40. path: /home/drone/cache