643 B
643 B
本文作者:丁辉
Drone客户端安装
开始安装
-
Linux 安装 Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
MAC 使用 Homebrew 安装 Drone命令
brew tap drone/drone brew install drone
使用命令触发 Drone 构建
curl -X POST \
-H "Authorization: Bearer $YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
https://your.drone.instance/api/repos/用户/仓库名/builds