Get personal access token:
https://cloud.drone.io/account
Mac:
brew install drone-cli
Enter repo directory where .drone.yml
is and build locally:
cd ~/github/bash-tools
drone exec # [--pipeline default] [--include=thisstep] [--exclude=thatstep]
https://docs.drone.io/cli/repo/drone-repo-ls/
export DRONE_SERVER=https://cloud.drone.io
export DRONE_TOKEN=... # get from https://cloud.drone.io/account
User and email:
drone info
drone repo ls
Last build status for given repo:
drone build last HariSekhon/DevOps-Bash-tools
curl -i -H "Authorization: Bearer $DRONE_TOKEN" https://cloud.drone.io/api/user
For easier shorter CLI use see drone_api.sh in DevOps-Bash-tools repo:
drone_api.sh --help