Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

56 lignes
1.6KB

  1. kind: pipeline
  2. type: docker
  3. name: default
  4. steps:
  5. - name: startnotification
  6. image: lddsb/drone-dingtalk-message
  7. settings:
  8. token: 66039657ac01b5e44720fbc01eaa107c351c32dc1da177efc766637a8fd96913
  9. type: markdown
  10. secret: SECb58ffd267c6598d027367070e4d6300db42f2b213a53392ee9a10adf3178b196
  11. tpl: ./drone/start.md
  12. tips_title: 湖州项管web开始构建
  13. success_pic: https://i.ibb.co/CB4HBLP/success-1.png
  14. failure_pic: https://i.ibb.co/wM2rbGS/fail-1.png
  15. msg_at_mobiles: 15106115982
  16. - name: build
  17. image: node:12.16.3
  18. commands:
  19. - npm config set registry http://registry.npm.taobao.org
  20. - npm install
  21. - npm run build
  22. - name: develop deploy
  23. image: appleboy/drone-scp
  24. settings:
  25. host:
  26. from_secret: host
  27. port:
  28. from_secret: port
  29. username:
  30. from_secret: username
  31. password:
  32. from_secret: password
  33. target: /server/huzhou/web
  34. source: ./dist
  35. rm: true
  36. when:
  37. branch:
  38. - master
  39. - name: endnotification
  40. image: lddsb/drone-dingtalk-message
  41. settings:
  42. token: 66039657ac01b5e44720fbc01eaa107c351c32dc1da177efc766637a8fd96913
  43. type: markdown
  44. secret: SECb58ffd267c6598d027367070e4d6300db42f2b213a53392ee9a10adf3178b196
  45. tpl: ./drone/end.md
  46. tips_title: 湖州项管web开始构建
  47. success_pic: https://i.ibb.co/CB4HBLP/success-1.png
  48. failure_pic: https://i.ibb.co/wM2rbGS/fail-1.png
  49. msg_at_mobiles: 15106115982
  50. trigger:
  51. branch:
  52. - master