22 lines
393 B
Markdown
22 lines
393 B
Markdown
> 本文作者:丁辉
|
|
|
|
# MAC安装Drone客户端
|
|
|
|
1. 使用 Homebrew 安装 Drone命令
|
|
|
|
```bash
|
|
brew tap drone/drone
|
|
brew install drone
|
|
```
|
|
|
|
2. 使用命令触发 Drone 构建
|
|
|
|
```bash
|
|
curl -X POST \
|
|
-H "Authorization: Bearer $YOUR_API_TOKEN" \
|
|
-H "Content-Type: application/json" \
|
|
https://your.drone.instance/api/repos/用户/仓库名/builds
|
|
```
|
|
|
|
|