Skip to content
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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy