- Generate appropriate oauth application/token
- Install drone inside Rancher environment see http://github.com/cchamplin/rancher-drone-compose using the github/bitbucket oauth token
- Log into Drone via github granting access to the oauth application
- Select the repositories you wish to enable
- Activate the repository
- In the Drone project access the "Secrets" tab
- Add yaml configuration and generate the token
environment:
RANCHER_ACCESS_KEY: <RANCHER API ACCESS KEY>
RANCHER_SECRET_KEY: <RANCHER API SECRET KEY>
SERVICE_NAME: <RANCHER STACK>/<APPLICATION NAME>
RANCHER_URL: <RANCHER URL>
SERVICE_CONTAINER: <DOCKER ACCOUNT>/gov-drupal:latest
- Add token to .drone.sec file in repo
- See drone.yml file in example application
- Builds start automatically when items are pushed into the repository
- Services are current started before the old one is shut down
- Configure the .mounts file to setup symlinks for shared storage inside your application directories