@kbye/ghcd
An Express CLI tool for setting up continuous delivery with github webhooks
Last updated 2 years ago by kbye .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @kbye/ghcd 
SYNC missed versions from official npm registry.

Install

npm i -g @kbye/ghcd

Usage

  1. Start up the listening server with

ghcd -p <port-number> -e <path-to-script>

  1. Create a script at path-to-script that updates your source code and runs the commands to stop and re-deploy your app.

  2. Expose port-number on your server for HTTP requests.

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

Current Tags

  • 1.0.5                                ...           latest (2 years ago)

6 Versions

  • 1.0.5                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 6
This Month 9
Last Day 6
Last Week 0
Last Month 4
Dependencies (2)
Dev Dependencies (9)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |