An opinionated deployment bot for Slack + GitHub Deployments
A Google Cloud Function-based deployment bot for Slack.
Build deploybot:
$ make deps $ make build
Deploy deploybot to Google Cloud Functions:
$ make deploy
Find the url of your function. It should look something like this: https://us-central1-kern-io.cloudfunctions.net/deploybot
Create a new Slash Command Slack App for deploybot.
Enter /deploy
as the name of the command.
Enter the URL for your deploybot function as the URL for the Slash Command.
Give your command a description and save.
Add the new Slack app to your workspace using Settings > Install App > Install App to Workspace > Allow.
Populate the SLACK_TOKEN
value found in .env.yaml
. You can find the value under Settings > Basic Information > App Credentials > Verification Token.
Create a personal GitHub access token with the repo_deployment
. Place it in the GITHUB_TOKEN
env var in .env.yaml
.
Populate the repository you'd like to have deployed in .env.yaml
.
Redeploy the Cloud Function using make deploy
.
Woot you are done!
Apache 2.0