Kubernetes/CICD/Drone/Docs/Drone客户端安装.md
offends 7a2f41e7d6
All checks were successful
continuous-integration/drone Build is passing
synchronization
2024-08-07 18:54:39 +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