Files
Kubernetes/CICD/Drone/Docs/Drone客户端安装.md
offends 8a87b699ba
All checks were successful
continuous-integration/drone Build is passing
first commit
2025-12-13 18:06:23 +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