Skip to content

Latest commit

 

History

History
41 lines (34 loc) · 1.36 KB

readme.md

File metadata and controls

41 lines (34 loc) · 1.36 KB

Drone Setup

Containers and Services

Add postgre container instance to rancher

  • Set environment variable POSTGRES_PASSWORD
  • Set networking and adjust custom container/hostname

Add drone installation from catalog

Enabling Repositories

  1. Log into Drone via github granting access to the oauth application
  2. Select the repositories you wish to enable
  3. Activate the repository

Drone Secrets

  1. In the Drone project access the "Secrets" tab
  2. 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
  1. Add token to .drone.sec file in repo

Drone Configuration

  1. See drone.yml file in example application

Builds

  • Builds start automatically when items are pushed into the repository
  • Services are current started before the old one is shut down

Drupal State

  • Todo by Sean Schoolcraft (fill in info about steps in drone deploy)