.drone.yml 1023 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. - git config --global http.sslverify "false"
  18. - git config --global url."https://".insteadOf ssh://git
  19. - npm install
  20. - npm run build:prod
  21. - name: rebuild-cache
  22. image: drillster/drone-volume-cache
  23. volumes:
  24. - name: cache
  25. path: /cache
  26. settings:
  27. rebuild: true
  28. mount:
  29. - ./node_modules
  30. - name: docker-web
  31. image: plugins/docker
  32. settings:
  33. tags:
  34. - latest
  35. - 2.0.${DRONE_BUILD_NUMBER}
  36. registry: nas.fast-fun.cn:5000
  37. insecure: true
  38. repo: nas.fast-fun.cn:5000/zk/station-control-frontend-v2
  39. volumes:
  40. - name: cache
  41. host:
  42. path: /home/drone/cache