Slack integration for Google Cloud Build, using Google Cloud Functions to post messages to Slack.
-
Clone the repo
-
Create a Slack app, and copy the webhook URL in index.js:
const SLACK_WEBHOOK_URL = "ENTER_WEBHOOK_URL_HERE";
- Get deps
npm i
- Deploy to google cloud functions (make sure you're using the right project by using gcloud init)
gcloud functions deploy subscribe --runtime nodejs8 --trigger-topic cloud-builds