.drone.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. kind: pipeline
  2. type: docker
  3. name: tmp-admin
  4. clone:
  5. depth: 1
  6. disable: true
  7. steps:
  8. - name: clone
  9. image: alpine/git
  10. commands:
  11. - git config --global credential.helper store
  12. - git clone -b develop http://192.168.1.8:3000/duanxiaoduan/tmr-admin.git
  13. - pwd
  14. - cp -R tmr-admin/* ./
  15. - ls -l
  16. - name: build
  17. image: plugins/docker
  18. volumes:
  19. - name: hosts
  20. path: /etc/hosts
  21. - name: docker-ca
  22. path: /etc/docker
  23. - name: docker-sock
  24. path: /var/run/docker.sock
  25. settings:
  26. dockerfile: /drone/src/Dockerfile
  27. username:
  28. from_secret: aliyun_name
  29. password:
  30. from_secret: aliyun_password
  31. repo: registry.cn-hangzhou.aliyuncs.com/kpt-event/tmr-admin
  32. registry: registry.cn-hangzhou.aliyuncs.com
  33. tags: [1.0.0,latest]
  34. trigger:
  35. branch:
  36. include:
  37. - develop
  38. event:
  39. include:
  40. - push
  41. volumes:
  42. - name: host
  43. host:
  44. path: /etc/host
  45. - name: docker-ca
  46. host:
  47. path: /ect/docker
  48. - name: docker-sock
  49. host:
  50. path: /var/run/docker.sock