Skip to content

Latest commit

 

History

History
74 lines (48 loc) · 1.16 KB

drone.io.md

File metadata and controls

74 lines (48 loc) · 1.16 KB

Drone.io

https://www.drone.io/

PAT

Get personal access token:

https://cloud.drone.io/account

CLI

CLI Quickstart

CLI Install

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

API

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