Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ivkos/cloud-build-notifier
Sends email notifications for Google Cloud Build
https://github.com/ivkos/cloud-build-notifier
cloud-build cloudbuild email functions gcp gcp-cloud-functions google-cloud-build lambda notifications
Last synced: 4 days ago
JSON representation
Sends email notifications for Google Cloud Build
- Host: GitHub
- URL: https://github.com/ivkos/cloud-build-notifier
- Owner: ivkos
- License: mit
- Created: 2020-06-13T11:40:52.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-13T01:43:33.000Z (almost 2 years ago)
- Last Synced: 2024-04-14T05:14:21.413Z (7 months ago)
- Topics: cloud-build, cloudbuild, email, functions, gcp, gcp-cloud-functions, google-cloud-build, lambda, notifications
- Language: TypeScript
- Homepage:
- Size: 108 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cloud Build Notifier
Function for [Google Cloud Functions](https://cloud.google.com/functions)
that listens on [Cloud Build](https://cloud.google.com/cloud-build)'s
pub/sub topic for build status updates, and sends email via [SendGrid](https://sendgrid.com).## Deploy
1. [Obtain an API key for SendGrid](https://sendgrid.com/docs/ui/account-and-settings/api-keys/).
2. Configure the function name, the region, the pub/sub topic, and the environment variables in the example below.
3. Run the command:```bash
gcloud functions deploy \
cloud-build-notifier \
--region=europe-west1 \
--trigger-topic=cloud-builds \
--source=. \
--entry-point=handleEvent \
--runtime=nodejs10 \
--memory=128MB \
--update-env-vars='[email protected],[email protected],SENDGRID_API_KEY=very.secret'
```