Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commita10f874

Browse files
committed
init project
1 parent906dbc0 commita10f874

File tree

3 files changed

+75
-1
lines changed

3 files changed

+75
-1
lines changed

‎README.md‎

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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+

‎bin/deploy-robot‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env node
2+
3+
require('../build/robot');

‎package.json‎

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,28 @@
11
{
22
"name":"deploy-robot",
33
"version":"1.0.0",
4-
"description":"",
4+
"description":"Deploy robot",
55
"main":"build/robot.js",
66
"scripts": {
77
"test":"echo\"Error: no test specified\" && exit 1"
88
},
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,
920
"author":"joyqi",
1021
"license":"MIT",
22+
"bugs": {
23+
"url":"https://github.com/SegmentFault/deploy-robot/issues"
24+
},
25+
"homepage":"https://github.com/SegmentFault/deploy-robot",
1126
"dependencies": {
1227
"github":"^0.2.3",
1328
"optimist":"^0.6.1",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp