mod_github

Github webhook to trigger a rebuild of your site from the services API.

Categories:

SCM system : Git (git)

Project source url: https://github.com/arjan/mod_github

This is a Zotonic module to trigger a rebuild of your site from the API.

The module exposes an API service at /api/github/webhook which can be used to POST a token to which, if the token is correct, triggers a "git pull", rebuilds Zotonic and flushes the site's depcache.

The token is a shared secret stored in the mod_github.webhook_token configuration value, and can be passed as a POST parameter or in the query string.

Arjan Scherpenisse, 2013

Installation

Zotonic >= 0.10:
zotonic modules install mod_github
Zotonic <= 0.9:
zotonic installmodule mod_github
Zotonic <= 0.6:
git clone https://github.com/arjan/mod_github mod_github

Leave a comment