Skip to content

Using git archive to deploy several (or part of) projects.

License

Notifications You must be signed in to change notification settings

socrateslee/git-deploy-archive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

git-deploy-archive

Using git archive to deploy several (or part of) projects.

Install

sudo curl -o `git --exec-path`/git-deploy-archive "https://raw.githubusercontent.com/socrateslee/git-deploy-archive/master/git-deploy-archive.sh"
sudo chmod +x `git --exec-path`/git-deploy-archive

Usage

git deploy-archive
git deploy-archive --cfg <config-file>

.git-deploy-archive file

.git-deploy-archive file is a simple configuration file, each line of the file contains 1) remote repo address, 2) treeish, 3) file or directory path to extract, 4) optional local path prefix for content extracted. A sample file is as below:

# basic
[email protected]:test master src

# extract a config.json from another repo to config/
[email protected]:conf tag_1.2.0 config.json config

# extract a static/dist folder, and rename prefix from static/dist to dist
[email protected]:frontend master static/dist static_files dist

NOTE

About

Using git archive to deploy several (or part of) projects.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages