Google cloud build slack notifications
I assume that you have a Google cloud account and that you have signed in to your account.
Install and initialize the Cloud SDK.
- Choose the app's name and your Slack team. Click Create.
- Click Incoming Webhooks.
- Enable incoming webhooks.
- Click Add New Webhook to Workspace. An authorization page opens.
- From the drop down menu, select the channel to which you would like notifications sent.
- Click Authorize.
- A webhook for your Slack application has been created. Copy the webhook and save it for later use.
gcloud functions deploy subscribenew --trigger-topic cloud-builds --env-vars-file=env.yaml or --set-env-vars SLACK_WEBHOOK_URL="https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX" --runtime nodejs6/nodejs10