Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 1.06 KB

README.md

File metadata and controls

23 lines (19 loc) · 1.06 KB

DevOps CT Lita Bot

This is the Lita bot that lives in our Slack team.

Configuration Management

Secrets are managed through Torus CLI.

  1. Signup for Torus if you haven't already
  2. Setup and Org and Project for Torus:
  • torus orgs create <name>
  • torus projects create --org <org> <name>
  1. Link to your project: torus link
  2. Create an environment for Heroku: torus envs create heroku
  3. Create a Heroku machine role: torus machines roles create heroku
  4. Give your machine role access: torus allow rl /<org>/<project>/heroku/default/** heroku
  5. Create a Heroku machine for your deployment: torus machines create heroku-instance -r heroku
  6. Set the following env vars in Heroku using output from step 7:
  • TORUS_TOKEN_ID: Machine Token ID
  • TORUS_TOKEN_SECRET: Machine Token Secret
  1. Add the following secrets to Torus: torus set -e heroku <ENV var> <value>
  • LITA_SLACK_TOKEN - xoxb-YOUR-TOKEN-HERE
  • LITA_HEROKU_KEEPALIVE_URL - Your Heroku URL (heroku apps:info -s | grep web.url | cut -d= -f2)