https://github.com/segmentfault/deploy-robot
GitHub 自动部署机器人
https://github.com/segmentfault/deploy-robot
Last synced: about 2 months ago
JSON representation
GitHub 自动部署机器人
- Host: GitHub
- URL: https://github.com/segmentfault/deploy-robot
- Owner: segmentfault
- Created: 2015-03-26T09:17:04.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-01-09T02:29:42.000Z (about 9 years ago)
- Last Synced: 2025-07-06T15:02:31.087Z (9 months ago)
- Language: CoffeeScript
- Homepage:
- Size: 138 KB
- Stars: 346
- Watchers: 54
- Forks: 66
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
自动部署机器人
=============
将你从繁冗的部署工作中解放出来,让你的部署流程更加自动化
特点
----
- 与 GitHub 深度整合,利用 GitHub API 读取相关部署指令,并及时反馈部署情况
- 与人工部署不同的是,自动部署不会疲劳,也不会喊累,你永远可以不停地折腾它
使用方法
--------
执行以下命令安装
```
npm install -g deploy-robot
```
使用以下命令启动脚本
```
deploy-robot -c config.json
```
config.json 文件
--------------
参考目录下的 config.json.sample 文件
```javascript
{
"username": "", // 用户名
"password": "", // token,去 https://github.com/settings/applications 的 "Personal access tokens" 选项卡点击 "Generate new token",将获取的字符串填入这里
"repos": [ // 需要监听地 repo 列表
{
"user": "xxx", // repo 所属用户名
"name": "xxx", // repo 名
"labels": "xxx", // 指定 issue 的 label
"command": "xxx", // 上线脚本的命令
"confirm": null // 上线是否需要某人的确认, 默认为空
}
]
}
```
提交上线请求
-----------
见下图
