https://github.com/kern/deploybot
An opinionated deployment bot for Slack + GitHub Deployments
https://github.com/kern/deploybot
Last synced: about 2 months ago
JSON representation
An opinionated deployment bot for Slack + GitHub Deployments
- Host: GitHub
- URL: https://github.com/kern/deploybot
- Owner: kern
- Created: 2019-09-12T00:32:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-22T09:05:53.000Z (over 3 years ago)
- Last Synced: 2025-02-12T05:57:02.779Z (3 months ago)
- Language: TypeScript
- Size: 27.3 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Deploybot
A Google Cloud Function-based deployment bot for Slack.
## Quickstart
1. Build deploybot:
$ make deps
$ make build2. Deploy deploybot to Google Cloud Functions:
$ make deploy
3. Find the url of your function. It should look something like this: `https://us-central1-kern-io.cloudfunctions.net/deploybot`
4. Create a new *Slash Command* [Slack App](https://api.slack.com/apps) for deploybot.
5. Enter `/deploy` as the name of the command.
6. Enter the URL for your deploybot function as the URL for the *Slash Command*.
7. Give your command a description and save.
8. Add the new Slack app to your workspace using **Settings > Install App > Install App to Workspace > Allow**.
9. Populate the `SLACK_TOKEN` value found in `.env.yaml`. You can find the value under **Settings > Basic Information > App Credentials > Verification Token**.
10. Create a [personal GitHub access token](https://github.com/settings/tokens/new) with the `repo_deployment`. Place it in the `GITHUB_TOKEN` env var in `.env.yaml`.
11. Populate the repository you'd like to have deployed in `.env.yaml`.
10. Redeploy the Cloud Function using `make deploy`.
10. Woot you are done!
## License
Apache 2.0