This commit is contained in:
21
MacBook/MAC安装Drone客户端.md
Normal file
21
MacBook/MAC安装Drone客户端.md
Normal file
@@ -0,0 +1,21 @@
|
||||
> 本文作者:丁辉
|
||||
|
||||
# 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
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user