.drone.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. - cp -R tmr-admin/* ./
  14. - ls -l
  15. - name: build
  16. image: plugins/docker
  17. volumes:
  18. - name: hosts
  19. path: /etc/hosts
  20. - name: docker-ca
  21. path: /etc/docker
  22. - name: docker-sock
  23. path: /var/run/docker.sock
  24. settings:
  25. dockerfile: /drone/src/Dockerfile
  26. username:
  27. from_secret: aliyun_name
  28. password:
  29. from_secret: aliyun_password
  30. repo: registry.cn-hangzhou.aliyuncs.com/kpt-event/tmr-admin
  31. registry: registry.cn-hangzhou.aliyuncs.com
  32. tags: [1.0.0,latest]
  33. trigger:
  34. branch:
  35. include:
  36. - develop
  37. event:
  38. include:
  39. - push
  40. volumes:
  41. - name: host
  42. host:
  43. path: /etc/host
  44. - name: docker-ca
  45. host:
  46. path: /ect/docker
  47. - name: docker-sock
  48. host:
  49. path: /var/run/docker.sock