.drone.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. kind: pipeline
  2. name: default
  3. steps:
  4. - name: build
  5. image: node:14
  6. commands:
  7. - npm config set registry http://registry.npm.taobao.org
  8. - npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/
  9. - npm config set electron_mirror https://npm.taobao.org/mirrors/electron/
  10. - npm i
  11. - npm run build:prod
  12. - pwd
  13. - ls -la
  14. - name: scp_files
  15. image: appleboy/drone-scp
  16. settings:
  17. host: 172.17.0.1
  18. username: root
  19. password: $jgkj001
  20. debug: true
  21. target: /www/wwwroot/railway-web.iamsee.com/release
  22. source: dist
  23. rm: true
  24. - name: deploy
  25. image: appleboy/drone-ssh
  26. settings:
  27. host: deploy.iamsee.com
  28. username: root
  29. password: $jgkj001
  30. debug: true
  31. script:
  32. - export PATH=/usr/local/bin:$PATH
  33. - echo $PATH
  34. - name: scp_files_to_test
  35. image: appleboy/drone-scp
  36. settings:
  37. host: 182.92.65.152
  38. username: root
  39. password: Swsc2021!bd
  40. debug: true
  41. target: /www/wwwroot/gdsc.svstrong.com/release
  42. source: dist
  43. rm: true
  44. volumes:
  45. - name: cache # The name use in this pipeline,
  46. host:
  47. path: /tmp/cache # The path be used in the host.
  48. - name: dockersock
  49. host:
  50. path: /var/run/docker.sock