Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Feb 9, 2023. It is now read-only.

PeterDaveHello/drone-git-sparse-checkout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Packages

No packages published

Contributors 6

Morty Proxy This is a proxified and sanitized view of the page, visit original site.