Coder Social home page Coder Social logo

autodeployer's Introduction

autoDeployer

GitHub Webhook Client - Spring Boot

Prerequisite Java Runtime and JAVA_HOME is properly set. Maven is installed on your box. Build, Deploy and Run On your linux box, clone the github project and execute below commands from project directory.

Note the GHSecretKey generated. Exact same key should be used on Github.com while configuring this webhook.

mvn clean package

#Copy run_app.sh and make sure its executable. sudo cp run_app.sh /srv/autoDeployerGithubWebHook/ && sudo chmod +x /srv/autoDeployerGithubWebHook

#To enable webhook start on startup open cron tab crontab -e #Then append below line to crontab file and save @reboot /srv/autoDeployerGithubWebHook/run_app.sh

#If you can't reboot system now, then just run it manually first tie - sh /srv/autoDeployerGithubWebHook/run_app.sh

#To verify it started, check java process ps -ef | grep autoDeployerGithubWebHook

Once webhook runs, it will be accessible over http(/s)://{your ip/domain}:9050/push

Configuration on Github.com Go to your repository -> Settings -> Webhooks . Add a new webhook with your address there and use the exact same Secret Key generated in GHSecretKey step during deploying.

https://docs.google.com/document/d/1e3hlrd8jftsPBx6S4YkBTjOpxofqkZFnlK1huVvNQrw/edit?usp=sharing

autodeployer's People

Contributors

sulaymonhursanov 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.