{"id":17843266,"url":"https://github.com/philmod/google-cloud-build-email","last_synced_at":"2025-04-02T15:26:59.674Z","repository":{"id":145516168,"uuid":"96635034","full_name":"Philmod/google-cloud-build-email","owner":"Philmod","description":"Email integration for Google Cloud Container Builder, using Google Cloud Functions","archived":false,"fork":false,"pushed_at":"2017-07-09T19:17:49.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T06:29:04.387Z","etag":null,"topics":["cloud","email","google"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Philmod.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-08T17:51:19.000Z","updated_at":"2018-10-08T21:24:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"d744bde5-b1b5-4caf-8510-377071bb430f","html_url":"https://github.com/Philmod/google-cloud-build-email","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Philmod%2Fgoogle-cloud-build-email","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Philmod%2Fgoogle-cloud-build-email/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Philmod%2Fgoogle-cloud-build-email/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Philmod%2Fgoogle-cloud-build-email/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Philmod","download_url":"https://codeload.github.com/Philmod/google-cloud-build-email/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246840075,"owners_count":20842369,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloud","email","google"],"created_at":"2024-10-27T21:23:20.353Z","updated_at":"2025-04-02T15:26:59.642Z","avatar_url":"https://github.com/Philmod.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# google-container-email\n\nEmail integration for Google Cloud Container Builder, using Google Cloud Functions to send an email when a build reaches a specific state.\n\n## Setup\n- Create a Mailgun account and a domain:\n```\nexport MAILGUN_API_KEY=my-api-key\nexport MAILGUN_DOMAIN=mydomain.com\nexport MAILGUN_FROM=philmod@mydomain.com\nexport MAILGUN_TO=myteam@mydomain.com\n```\n- Set the `PROJECT_ID` variable:\n```\nexport PROJECT_ID=my-project-id\n```\n- [Optionally] Set a specific `BUCKET_NAME` and a `FUNCTION_NAME`.\n- [Optionally] Set the status you want a message for, here are the default ones:\n```\nexport GC_STATUS=\"SUCCESS FAILURE TIMEOUT INTERNAL_ERROR\"\n```\n- Create the function:\n```\n. ./setup.sh\n# OR\nnpm run setup\n```\n\n## Teardown\nThe teardown script will delete the function `FUNCTION_NAME`, and the bucket `BUCKET_NAME`.\n```\n. ./teardown.sh\n# OR\nnpm run teardown\n```\n\n## FAQ\n\n### How much does it cost?\nEach build invokes 3 times the function:\n- when the build is queued\n- when the build starts\n- when the build reaches a final status.\n\nHere is the [GCF pricing](https://cloud.google.com/functions/pricing) for calculation.\n### Can I use an existing bucket?\nYes, specify the `BUCKET_NAME`:\n```\nexports BUCKET_NAME=my-bucket\n```\n### How can I update a function?\nIf you use the setup script with the same `FUNCTION_NAME`, it will update the existing function.\n\n### Why do I have to source the script?\nIn the case where a `BUCKET_NAME` is not defined, a random one is generated. And in order to delete it during the teardown, the variable has to be exported from the setup script.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilmod%2Fgoogle-cloud-build-email","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphilmod%2Fgoogle-cloud-build-email","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilmod%2Fgoogle-cloud-build-email/lists"}