Skip to content

mmercedes/slackbuild

Repository files navigation

slackbuild

Google Cloud Build integration for Slack

slack notifications from cloud build

Build Status

Features

  • Trigger cloudbuilds from slack
  • Sends a slack notification when a new build is submitted or a build changes state
  • Use templates to customize your build notifications (See the templates readme for how)

Install

  • Clone this repo
  • Create a new incoming webhook for Slack. Instructions
  • Add your slack token and signing secret to env.yaml. Example
    • secrets are in a seperate file so you can commit your config.yaml without exposing the token
  • Create a config.yaml file. Commented Example
slack:
  channel: '#test'
gcloud:
  project_id: 'my-project'
  gcs_bucket_url: 'gs://my-bucket'
  • Run make deploy
    • Assumes you have the gcloud sdk installed and permission to create cloud functions and gcs buckets in the gcp project set in config.yaml
    • Assumes you have python 3.7 installed

TODO

  • Example terraform config to avoid manual creation of cloud funcion
  • Attempt to publish to slack app store

About

Google Cloud Build integration for Slack

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published