Giter VIP home page Giter VIP logo

flynn-webhook-deploy's Introduction

Flynn GitHub Webhook Deploy

Circle CI

Deploy GitHub repositories to Flynn on git push.

Usage

Generate a secret token to include in the GitHub webhook (see here for more information):

$ openssl rand -hex 20
1d7f852c9e3f8ef889a42dfc823f57c2452df5bb

Deploy this Go app to Flynn with the secret token and a Postgres DB:

$ git clone https://github.com/lmars/flynn-webhook-deploy.git
$ cd flynn-webhook-deploy
$ flynn create webhook-deploy
$ flynn env set SECRET_TOKEN=1d7f852c9e3f8ef889a42dfc823f57c2452df5bb
$ flynn resource add postgres
$ git push flynn master
$ flynn scale web=1

You can now add repos by going to https://webhook-deploy.$CLUSTER_DOMAIN in your browser, or using psql from the command line:

flynn pg psql -- -c "INSERT INTO repos (name, app) VALUES ('lmars/go-flynn-example', 'go-app')"

With a repo added, this app will now accept GitHub push events to https://webhook-deploy.$CLUSTER_DOMAIN for repos in the db and deploy them to the corresponding app (e.g. in the example above, push events for lmars/go-flynn-example will be deployed to the go-app Flynn app).

flynn-webhook-deploy's People

Contributors

lmars avatar

Watchers

 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.