Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.12 KB

readme.md

File metadata and controls

26 lines (17 loc) · 1.12 KB

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.