Git Product home page Git Product logo

buildkite-with-codecommit's Introduction

codecommit-buildkite

AWS Lambda script to create Buildkite builds when code is pushed to AWS CodeCommit

Building

yarn install
yarn build

Windows

yarn install
yarn build-win

Uploading to AWS

  1. Go to Lambda AWS console
  2. Create function
  3. Author from scratch
  4. Add a name of your choosing
  5. Set runtime to Node 8.10
  6. Create a custom role
  7. Add a role name of your choosing
  8. View policy document -> Edit -> Ok, paste this policy:
    {
        "Version": "2012-10-17",
        "Statement": [
            {
                "Effect": "Allow",
                "Action": [
                    "codecommit:GetCommit"
                ],
                "Resource": "arn:aws:codecommit:*:*:*"
            }
        ]
    }
  9. Allow
  10. Create function
  11. Code entry type - change to "Upload a .ZIP file"
  12. Upload codecommit-buildkite.zip
  13. Add environment variables:
    • BUILDKITE_ORG: slug for your buildkite account
    • BUILDKITE_PIPELINE: slug for the pipeline to build on
    • BUILDKITE_TOKEN: API token - create it under Personal Settings -> API Access Tokens, and give it permission to modify builds
  14. Add triggers -> CodeCommit
  15. Select repository to watch
  16. Fill in trigger name of "buildkite" (or whatever makes sense to you, this is the name you will see when you browse triggers in CodeCommit)
  17. Remove the "All repository events" event type, and add "Create branch or tag" and "Push to existing branch"
  18. Add the trigger
  19. Save

buildkite-with-codecommit's People

Contributors

siren403 avatar tobico avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.