Skip to content

Instantly share code, notes, and snippets.

@ruanbekker
Last active April 17, 2019 05:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruanbekker/64fb69b691f1cb69bff197b012c21e5e to your computer and use it in GitHub Desktop.
Save ruanbekker/64fb69b691f1cb69bff197b012c21e5e to your computer and use it in GitHub Desktop.
Drone CLI Examples

On Golang:Alpine:

docker run -it golang:alpine sh
apk update && apk add curl openssh

My Server is running on 0.8.6

curl -L https://github.com/drone/drone-cli/releases/download/v0.8.6/drone_linux_amd64.tar.gz | tar zx
cp drone /usr/local/bin
export DRONE_SERVER=https://drone.xx.xx
export DRONE_TOKEN=xx

Manage Secrets:

ssh-keygen -t rsa -f drone-deploy
drone secret add --repository ruanbekker/docker-jekyll-drone --image drillster/drone-rsync --name rsync_key --value @/go/drone-deploy
drone secret ls --repository ruanbekker/docker-jekyll-drone
drone secret rm -name rsync_key --repository ruanbekker/docker-jekyll-drone

Resources:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment