Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Latest commit

 

History

History
32 lines (20 loc) · 1.36 KB

README.md

File metadata and controls

32 lines (20 loc) · 1.36 KB

drone-git-sparseCheckout

license

A Drone CI v0.5 plugin to give the ability to use git's sparseCheckout feature.

How to

Use docker image peterdavehello/drone-git-sparse-checkout for clone process, set the sparseCheckout value to the file contains the sparseCheckout file list, additionally, give the clone depth you want, that's all.

Reference: http://readme.drone.io/0.5/usage/customize-clone/

Example

clone:
  image: peterdavehello/drone-git-sparse-checkout
    depth: 5
    sparseCheckout: sparseCheckout-list.txt

Note

To leverage the benifit of sparseCheckout - do not checkout all the files to filesystem, actually the real process here is to init an empty git repository, setup remote and sparseCheckout, and then pull from remote, would be a little bit different then the origin git clone.

In short, the git clone here is actually git pull with pre-set repository and configs.

License

GPL-3.0