@kbye/ghcd
v1.0.5
Published
An Express CLI tool for setting up continuous delivery with github webhooks
Readme
Install
npm i -g @kbye/ghcd
Usage
- Start up the listening server with
ghcd -p <port-number> -e <path-to-script>
Create a script at
path-to-scriptthat updates your source code and runs the commands to stop and re-deploy your app.Expose
port-numberon your server for HTTP requests.Add
<server-URL>:<port-number>to github webhooks on your project's repository to send a POST request on github events.
If everything has gone correctly, the script at path-to-script will execute when you trigger your github webhook.
Port Number
Port number to listen for POST requests on
Path to script
Path to script to execute on POST request
Notes
This is a temporary solution for continuous delivery.
Currently there's no secret support.
Roadmap
- Secret Support
- Support github option to send a secret to verify against before executing script
