.drone.yml 792 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. kind: pipeline
  2. name: default
  3. clone:
  4. depth: 1
  5. steps:
  6. - name: 打包
  7. image: reg.weipaitang.com/drone-plugin/yarn
  8. volumes:
  9. - name: cache
  10. path: /drone/src/dist
  11. commands:
  12. - yarn
  13. - yarn build
  14. - name: 部署
  15. image: reg.weipaitang.com/drone-plugin/ansible
  16. pull: always
  17. volumes:
  18. - name: cache
  19. path: /drone/src/dist
  20. - name: 成功通知
  21. image: reg.weipaitang.com/drone-plugin/work-wechat-notify
  22. settings:
  23. token:
  24. from_secret: token
  25. title: 发布成功 ✅
  26. when:
  27. status: success
  28. - name: 失败通知
  29. image: reg.weipaitang.com/drone-plugin/work-wechat-notify
  30. settings:
  31. token:
  32. from_secret: token
  33. title: 发布失败 ❌
  34. when:
  35. status: failure
  36. volumes:
  37. - name: cache
  38. temp: {}
  39. trigger:
  40. branch:
  41. include:
  42. - t*