Runs a command (this one only runs git) on a webhook.
889
Runs a command on webhook from github.
docker run --rm -it -e SECRET=somereallyobscuresecretthatnobodywillguess -e COMMAND=git -e ARGUMENTS=pull -e COMMANDPATH=/home/project -v ${PWD}:/home/project -v ~/.ssh/:/root/.ssh/ -p 80:80 oisann/commandonhook:latest
This container runs git pull in the /home/project which has the contents of the folder you started the container from. It adds your ssh key, this is needed to pull private repos. The secret is the same as in the webhook settings on the github repo.

Content type
Image
Digest
Size
13.1 MB
Last updated
over 8 years ago
docker pull oisann/commandonhook