Skip to content

dhessler/google-container-github

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

google-container-github

Github integration for Google Cloud Container Builder, using Google Cloud Functions to update Github commit status when a build reaches a specific state.

Setup

  • Create a Github personal access token with repo:status scope here.
  • Set the PROJECT_ID variable:
export PROJECT_ID=my-project-id
  • [Optionally] Set a specific BUCKET_NAME, FUNCTION_NAME and REGION.

  • Create the function:

npm run setup

Teardown

The teardown script will delete the function FUNCTION_NAME, and the bucket BUCKET_NAME.

npm run teardown

FAQ

How much does it cost?

Each build invokes the function 3 times:

  • when the build is queued
  • when the build starts
  • when the build reaches a final status.

Here is the GCF pricing for calculation.

Can I use an existing bucket?

Yes, specify the BUCKET_NAME:

exports BUCKET_NAME=my-bucket

How can I update a function?

If you use the setup script with the same FUNCTION_NAME, it will update the existing function.

About

Github integration for Google Cloud Container Builder, using Google Cloud Functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 84.4%
  • Shell 15.6%