GithubHelp home page GithubHelp logo

toricls / github-codebuild-integration Goto Github PK

View Code? Open in Web Editor NEW
102.0 6.0 16.0 169 KB

Run and Integrate AWS CodeBuild with GitHub Push/Pull-Request webhook events.

License: MIT License

JavaScript 64.87% Makefile 12.32% Shell 22.81%
aws-codebuild webhook serverless ci github-integration

github-codebuild-integration's Issues

Update to documentation

I think we are going to need and env variable set before running make
export ENV_FILE_PATH=$(pwd)/env/$YOUR_PROJECT_NAME.env

I was not able to run it on my mac until I set this one, which I figured out looking into the makefile.

Use Amazon CloudWatch Events instead of AWS Step Functions

We're using AWS Step Functions to wait for build jobs on AWS CodeBuild to complete. Since github-codebuild-integration has built from the context of Serverless Architecture, it should be replaced with Amazon CloudWatch Events to treat build job as an "event" not a status.

To achieve that:

  • Remove AWS Step Functions stuffs from the code and the CloudFormation template
  • Invoke build-result-notifier Lambda function by CloudWatch Events which is associated with CodeBuild project's status changing

Expose builds status via Views

To show build status and its history even if viewer doesn't have any role for AWS Management Console.

Expected use-case is for open source projects or something like that.


split from #3 to make it simple

Deploy Error: 'As of October 2018, GitHub Services can no longer be added.'

CloudWatch Logs

2019-01-04T06:00:36.687Z	0d594680-0fe6-11e9-9a88-eb8893158f5c	Response body:
 {"Status":"FAILED","Reason":"See the details in CloudWatch Log Stream: 2019/01/04/[$LATEST]13b0b45ca11744a189d233bbac77****","PhysicalResourceId":"2019/01/04/[$LATEST]13b0b45ca11744a189d233bbac77****","StackId":"arn:aws:cloudformation:ap-northeast-1:52829650****:stack/codebuild-sample/e0495320-0fe5-11e9-8940-0ec45775****","RequestId":"ccaf9c0a-3feb-4f91-afae-a260c332256b","LogicalResourceId":"GitHubWebhook","Data":{"Error":"{\"message\":\"As of October 2018, GitHub Services can no longer be added. Please see the blog post for details: https://developer.github.com/changes/2018-04-25-github-services-deprecation\\nYou can use the \\\"Replacing GitHub Services\\\" guide to help you update your services to webhooks: https://developer.github.com/v3/guides/replacing-github-services\\n\",\"documentation_url\":\"https://developer.github.com/v3/repos/hooks/#create-a-hook\"}"}}

Slack notification

I want to know about build status changes without opening GitHub. Slack notification would be very handy ๐Ÿ˜ƒ

Enhanced configuration

The current way to use .env file for configuration is too poor to express more complicated or advanced parameters. e.g. arrays, sructured/typed values, maps...

We should consider to use something like YAML, TOML or JSON to represent gci's configurations.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.