https://github.com/vikramtiwari/cloud-build-slack-notifier
Sends a notification to slack for cloud builds
https://github.com/vikramtiwari/cloud-build-slack-notifier
cloud-build google-cloud-platform slack slack-webhook
Last synced: 2 months ago
JSON representation
Sends a notification to slack for cloud builds
- Host: GitHub
- URL: https://github.com/vikramtiwari/cloud-build-slack-notifier
- Owner: VikramTiwari
- Created: 2019-08-02T23:45:41.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-09T18:24:17.000Z (almost 7 years ago)
- Last Synced: 2025-05-18T00:11:19.336Z (about 1 year ago)
- Topics: cloud-build, google-cloud-platform, slack, slack-webhook
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cloud Build Slack Notifier
This is built using source code posted here: https://cloud.google.com/cloud-build/docs/configure-third-party-notifications
## Setup
- [Setup a webhook and get the webhook URL](https://get.slack.help/hc/en-us/articles/115005265063-Incoming-WebHooks-for-Slack)
- Get your GitHub Id. It's generally the value in the URL right after `github.com/`. For example, my GitHub Id is `VikramTiwari`
- Replace the variables and deploy to cloud functions
```sh
gcloud functions deploy cloud-build-slack-notifier --trigger-topic cloud-builds --runtime=nodejs10 --memory=128MB --set-env-vars SLACK_WEBHOOK_URL=,GITHUB_ID=
```
Enjoy!