File tree Expand file tree Collapse file tree 3 files changed +75
-1
lines changed Expand file tree Collapse file tree 3 files changed +75
-1
lines changed Original file line number Diff line number Diff line change
1
+
2
+ 自动部署机器人
3
+ =============
4
+
5
+ 将你从繁冗的部署工作中解放出来,让你的部署流程更加自动化
6
+
7
+ 特点
8
+ ----
9
+
10
+ - 与Github深度整合,利用Github API读取相关部署指令,并及时反馈部署情况
11
+ - 与人工部署不同的是,自动部署不会疲劳,也不会喊累,你永远可以不停地折腾它
12
+
13
+ 使用方法
14
+ --------
15
+
16
+ 执行以下命令安装
17
+
18
+ ```
19
+ npm install -g deploy-robot
20
+ ```
21
+
22
+ 使用以下命令启动脚本
23
+
24
+ ```
25
+ deploy-robot -c config.json
26
+ ```
27
+
28
+ config.json文件
29
+ --------------
30
+
31
+ 参考目录下地config.json.sample文件
32
+
33
+ ``` javascript
34
+ {
35
+ " username" : " " , // 用户名
36
+ " password" : " " , // token,去user/settings申请
37
+
38
+ " repos" : [ // 需要监听地repo列表
39
+ {
40
+ " user" : " xxx" , // repo所属用户名
41
+ " name" : " xxx" , // repo名
42
+ " labels" : " xxx" , // 指定issue的label
43
+ " command" : " xxx" , // 上线脚本的命令
44
+ " confirm" : null // 上线是否需要某人的确认, 默认为空
45
+ }
46
+ ]
47
+ }
48
+ ```
49
+
50
+ 提交上线请求
51
+ -----------
52
+
53
+ 见下图
54
+
55
+ ![ deploy] ( http://joyqi.qiniudn.com/deploy.gif )
56
+
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env node
2
+
3
+ require ( '../build/robot' ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " deploy-robot" ,
3
3
"version" : " 1.0.0" ,
4
- "description" : " " ,
4
+ "description" : " Deploy robot " ,
5
5
"main" : " build/robot.js" ,
6
6
"scripts" : {
7
7
"test" : " echo \" Error: no test specified\" && exit 1"
8
8
},
9
+ "repository" : {
10
+ "type" : " git" ,
11
+ "url" : " https://github.com/SegmentFault/deploy-robot.git"
12
+ },
13
+ "keywords" : [
14
+ " deploy" , " robot"
15
+ ],
16
+ "bin" : {
17
+ "logechod" : " ./bin/deploy-robot"
18
+ },
19
+ "preferGlobal" : true ,
9
20
"author" : " joyqi" ,
10
21
"license" : " MIT" ,
22
+ "bugs" : {
23
+ "url" : " https://github.com/SegmentFault/deploy-robot/issues"
24
+ },
25
+ "homepage" : " https://github.com/SegmentFault/deploy-robot" ,
11
26
"dependencies" : {
12
27
"github" : " ^0.2.3" ,
13
28
"optimist" : " ^0.6.1" ,
You can’t perform that action at this time.
0 commit comments