shark-deploy
1.0.5 • Public • Published 发布代码到指定的代码仓库
使用方式
shark deploy <target> <branch> [--sharkdeploy <sharkdeploy>] [--tagv <tagv>] [--tagm <tagm>]
shark-deploy.js 配置文件
{
"sourcedir": "request.待发布代码的目录,如果是相对路径,则相对于该配置文件",
"test": {
"repodir": "request.与测试仓库有对应关系的目录。绝对路径",
"repo": "request.测试仓库地址"
},
"online": {
"repodir": "request.与线上仓库有对应关系的目录。绝对路径",
"repo": "request.线上仓库地址"
}
...
}
例子
- 工作目录 /usr/usrname/worktree
- 配置文件 /usr/usrname/worktree/config.js
- 待发布代码的目录 /usr/usrname/worktree/source
- 与测试仓库有映射关系的目录 /usr/usrname/deploy
- 测试repo地址 git@github.com
- branch test
- tagv v1.0.0
- tagm 'test tag'
{
"sourcedir": "source",
"test": {
"repodir": "/usr/usrname/deploy",
"repo": "git@github.com"
}
}
cd /usr/usrname/worktree
shark deploy test test --sharkdeploy config.js --tagv v1.0.0 --tagm 'test tag'
Readme
Keywords
nonePackage Sidebar
Install
Weekly Downloads