Public | Automated Build

Last pushed: 2 years ago
Short Description
A very simple webhook server launching shell scripts.
Full Description


A very simple webhook server to launch shell scripts.

It can be used as a cheap alternative of Docker hub in order to build private Docker images.



Linux binaries for release 0.0.3

Download the version you need, untar, and install to your PATH.

$ wget
$ tar xvzf webhookd-linux-amd64-v0.0.3.tar.gz
$ ./webhookd


Start the container mounting your scripts directory:

$ docker run -d --name=webhookd \
  --env-file etc/env.conf \
  -v ${PWD}/scripts:/var/opt/webhookd/scripts \
  -p 8080:8080 \

The provided environment file (etc/env.conf) is used to configure the app.
Check sample configuration for details.


Create your own scripts template in the scripts directory.

Respect the following structure:

|--> /bitbucket
  |--> /
  |--> /
|--> /github
|--> /gitlab
|--> /docker

The hookname you will use will be related to the hook you want to use (github, bitbucket, ...) and the script name you want to call:
For instance if you are gitlab and want to call then you will need to use:


It is important to use the right hook in order for your script to received parameters extract from the hook payload.

For now, supported hooks are:

  • GitHub
  • Gitlab
  • Bitbucket
  • Docker Hub

Check the scripts directory for samples.

Once the action script created, you can trigger the webhook :

$ curl -H "Content-Type: application/json" \
  --data @payload.json \

The action script's output is collected and sent by email or by HTTP request.

The HTTP notification need some configuration:

Note that the HTTP notification is compatible with Mailgun API.

As the smtp notification:

  • APP_SMTP_NOTIFIER_HOST=localhost:25
Docker Pull Command
Source Repository

Comments (0)