Skip to content

GoogleCloudPlatform/cloud-deploy-chatbot

Repository files navigation

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

google chat example slack example

Instructions

  1. Have a Google Cloud 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 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.

About

Push Google Cloud Deploy notifications to Slack or Google Chat!

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages