gitupdater can be used to automatically update git repo's with a webhook.
- Clone a github repository somewhere.
- Set a webhook for the repository. (Use the JSON format)
- Optionally set a secret in settings.py and your webhook
- Fill in the path for the repository in settings.py
- Run
FLASK_APP=server.py GITUPDATER_SETTINGS=settings.py flask run
or something like these docker commands:
docker build -t gitupdater .
docker run -d --restart=always -v /var/www/example.com:/gitrepo -p 127.0.0.1:8001:5000 gitupdater
- Add a route or vhost to redirect your webhook to port 8001.