Clones a Git repository and executes a custom setup script upon receiving webhooks
628
An Alpine Linux based image that can clone a Git repository and execute a custom setup script upon receiving webhooks.
In order to keep the image small and as close to the base image as possible, no system-wide package is installed; Git and SSH clients are compiled, statically linked, and placed in their own directories.
The following environment variables must be set before starting the container
SSH_PRIVATE_KEY: a string containing the private key (in OpenSSH format) to
access the Git repositoryGIT_REPO_URL: Git repository URLGIT_REPO_BRANCH: Git branch to checkout before running the setup scriptIn order to prevent unauthorized clients from triggering the webhook handler,
one can set WEBHOOK_AUTH_TOKEN environment variable. The webhook receiver
server will only accept URL paths that end in WEBHOOK_AUTH_TOKEN.
Webhook receiver server listens on port 8000 and does the following upon receiving webhooks:
#!/bin/sh)nohup to start background processes in setup
scriptContent type
Image
Digest
Size
13.5 MB
Last updated
about 10 years ago
docker pull fardjad/webhook-deploy