You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.0KB

  1. kind: pipeline
  2. type: docker
  3. name: default
  4. steps:
  5. - name: build
  6. image: node:16.18.0
  7. commands:
  8. - npm config set registry http://registry.npm.taobao.org
  9. - npm install
  10. - npm run build_test
  11. - name: develop deploy
  12. image: appleboy/drone-scp
  13. settings:
  14. host:
  15. from_secret: host
  16. port:
  17. from_secret: port
  18. username:
  19. from_secret: username
  20. password:
  21. from_secret: password
  22. target: /data/ls_rebuild/web
  23. source: ./dist
  24. rm: true
  25. when:
  26. branch:
  27. - main
  28. - name: notification
  29. image: lddsb/drone-dingtalk-message
  30. settings:
  31. token: 840fed65878154561a096c03a516ded894ab1b91efbe1643fe492dd93593e7a3
  32. type: markdown
  33. secret: SEC9fe40cc775658cbef7a30b43fd852b642201754f15df42cd339627e05cfde41e
  34. tpl: ./drone/index.md
  35. tips_title: 丽水二期web构建
  36. success_pic: https://i.ibb.co/CB4HBLP/success-1.png
  37. failure_pic: https://i.ibb.co/wM2rbGS/fail-1.png
  38. trigger:
  39. branch:
  40. - main