https://github.com/googlecloudplatform/cloud-deploy-chatbot
Push Google Cloud Deploy notifications to Slack or Google Chat!
https://github.com/googlecloudplatform/cloud-deploy-chatbot
chatops gcp gcp-cloud-deploy
Last synced: 12 months ago
JSON representation
Push Google Cloud Deploy notifications to Slack or Google Chat!
- Host: GitHub
- URL: https://github.com/googlecloudplatform/cloud-deploy-chatbot
- Owner: GoogleCloudPlatform
- License: apache-2.0
- Created: 2021-11-07T23:50:41.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-04T11:57:15.000Z (about 2 years ago)
- Last Synced: 2025-04-19T22:18:09.309Z (about 1 year ago)
- Topics: chatops, gcp, gcp-cloud-deploy
- Language: Go
- Homepage:
- Size: 112 KB
- Stars: 14
- Watchers: 19
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- Contributing: docs/contributing.md
- License: LICENSE
- Code of conduct: docs/code-of-conduct.md
Awesome Lists containing this project
README
# Google Cloud Deploy Bot
### Push Google Cloud Deploy notifications to Slack or Google Chat!
This repo is indended as an example, and as a first step, to adding [Google Cloud Deploy](https://cloud.google.com/deploy) to your _ChatOps_ suite of integrations.
## Examples


## Instructions
1. Have a [Google Cloud Deploy](https://cloud.google.com/deploy) pipeline set up.
2. Create a Google Cloud Function, defining:
1. Entry point is `CloudFuncPubSubCDOps`.
2. Environment value `TOKEN` = Slack's bot token or Google Chat Service Account Key JSON data (1).
3. Environment value `CHANNEL` = Slack's channel id or Google Chat space id.
4. Environment value `CHATAPP` = values can be `slack` or `google`.
3. Subscribe to the [clouddeploy-operations](https://cloud.google.com/deploy/docs/subscribe-deploy-notifications) topic on Google Pub/Sub and use the Cloud Function above as a trigger.
---
**Notes**
(1) If you are minimising the Service Account's JSON data be careful about removing all blank spaces as it might break the private key.