How do you use a drone-git substitute?

I’ve made some changes to the drone-git plugin and pushed my own image, but I don’t understand how drone knows to use this image in the first place.

Say I have this section in .drone.yml in my git project, and specify that I want to clone using my custom drone image:

clone:
  default:
    image: maciek/drone-git

How does drone know to use this image before .drone.yml has even fetched my repo?

Does drone require this change to land in master and then cache the result?

Does drone see this and then re-fetch?

Is this the right way to specify a substitute for drone-git or is there some more central way to do it?

1 Like

How does drone know to use this image before .drone.yml has even fetched my repo? Does drone require this change to land in master and then cache the result?

Nope, Drone fetches the Yaml file individually and is therefore able to create the pipeline execution plan prior to cloning your entire repository.

Is this the right way to specify a substitute for drone-git

Yes, you can see more examples at the following link
http://docs.drone.io/cloning/