Files
Kubernetes/CICD/Drone/Docs/Drone客户端安装.md
2025-08-25 17:53:08 +08:00

643 B

本文作者:丁辉

Drone客户端安装

开始安装

Homebrew官网

  • 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 构建

Drone 命令官网

curl -X POST \
  -H "Authorization: Bearer $YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  https://your.drone.instance/api/repos/用户/仓库名/builds