.drone.yml 835 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. kind: pipeline
  2. type: docker
  3. name: calf-feed-admin
  4. steps:
  5. - name: build
  6. image: plugins/docker
  7. volumes:
  8. - name: hosts
  9. path: /etc/hosts
  10. - name: docker-ca
  11. path: /etc/docker
  12. - name: docker-sock
  13. path: /var/run/docker.sock
  14. settings:
  15. dockerfile: /drone/src/Dockerfile
  16. username:
  17. from_secret: aliyun_name
  18. password:
  19. from_secret: aliyun_password
  20. repo: registry.cn-hangzhou.aliyuncs.com/kpt-event/calf-feed-admin
  21. registry: registry.cn-hangzhou.aliyuncs.com
  22. tags: [ 1.0.0,latest ]
  23. trigger:
  24. branch:
  25. include:
  26. - develop
  27. event:
  28. include:
  29. - push
  30. volumes:
  31. - name: host
  32. host:
  33. path: /etc/host
  34. - name: docker-ca
  35. host:
  36. path: /ect/docker
  37. - name: docker-sock
  38. host:
  39. path: /var/run/docker.sock