.drone.yml 1016 B

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