Discover Packages
github.com/GoogleCloudPlatform/cloud-deploy-chatbot
package
module
Version:
v0.0.0-...-ad54c1f
Opens a new window with list of versions in this module.
Published: Jan 21, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
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 to your ChatOps suite of integrations.
Examples
Instructions
Have a Google Cloud Deploy pipeline set up.
Create a Google Cloud Function, defining:
Entry point is CloudFuncPubSubCDOps
.
Environment value TOKEN
= Slack's bot token or Google Chat Service Account Key JSON data (1).
Environment value CHANNEL
= Slack's channel id or Google Chat space id.
Environment value CHATAPP
= values can be slack
or google
.
Subscribe to the clouddeploy-operations 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.
Expand ▾
Collapse ▴
Documentation
¶
CloudFuncPubSubCDOps is an entry point function for Google Cloud Functions
which is triggered by a PubSub notification using Cloud Deploy's "clouddeploy-operations" topic
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.