This is the bot that created comments on GitHub pull requests whenever a Google Cloud Build build passes or fails.
Run make build
to submit the cloud build to create the image that will be hosted on
Cloud Run.
It is expected that there will be a secret named agones-bot-pr-commenter
with a
Github auth token stored
in it, and [email protected]
has the
role roles/secretmanager.secretAccessor
for the gh-token
secret.
Run make deploy
to copy the config to the appropriate bucket, and deploy the notifier image to Cloud Run.
Follow https://cloud.google.com/build/docs/subscribe-build-notifications to create the Google Cloud PubSub topics for Google Cloud Build.
Follow https://cloud.google.com/run/docs/triggering/pubsub-push to setup the Notifier service to be triggered from
PubSub with the cloud-builds
pubsub topic.