.drone.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. clone:
  2. git:
  3. image: plugins/git
  4. tags: true
  5. pipeline:
  6. build:
  7. image: docker.finogeeks.club/base/finchat-desktop-publish:1.1.0
  8. pull: true
  9. secrets:
  10. - NPM_TOKEN
  11. commands:
  12. - echo //mirrors.finogeeks.club/repository/npm/:_authToken=$${NPM_TOKEN} >> .npmrc
  13. - npm i yarn -g
  14. - yarn
  15. when:
  16. branch:
  17. - master
  18. build-plugins:
  19. image: docker.finogeeks.club/base/finchat-desktop-publish:1.1.0
  20. commands:
  21. - cd scripts
  22. - sh publish-finchat.sh
  23. - sh publish-plugin-auth.sh
  24. - sh publish-plugin-bim.sh
  25. - sh publish-plugin-favorite.sh
  26. - sh publish-plugin-net-disk.sh
  27. - sh publish-plugin-tam.sh
  28. - sh publish-plugin-todolist.sh
  29. when:
  30. branch:
  31. - master
  32. event: [tag]
  33. ref: refs/tags/*-plugins
  34. docker_latest:
  35. image: docker.finogeeks.club/drone/docker
  36. repo: docker.finogeeks.club/finochat/finchat-desktop-publish
  37. dockerfile: Dockerfile
  38. default_tags: true
  39. when:
  40. branch: master
  41. event: [tag]