This repo is indended as an example, and as a first step, to adding Google Cloud Deploy to your ChatOps suite of integrations.
-
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 beslack
orgoogle
.
- Entry point is
-
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.