Add postgre container instance to rancher
- Set environment variable POSTGRES_PASSWORD
- Set networking and adjust custom container/hostname
Add drone installation from catalog
- Create an oAuth application in github
- Utilize the appropriate connection string for github
- https://github.com?client_id=[CLIENT_ID]&client_secret=[CLIENT SECRET]
- Use postgres connection string
- postgres://postgres:[PASSWORD]@postgres:5432/postgres?sslmode=disable
- 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
- Todo by Sean Schoolcraft (fill in info about steps in drone deploy)