GitLab Webhook receiver written in PHP
-
Clone repo or download index.php
-
Create a vhost or copy the file to some browseable location
-
Create your config file based on example
{ "token": "10b3df25867af8bbfb182f76728592cc0b1956d6", "git": "/usr/bin/git", "log": "/var/log/apache/webhook.log", "develop": { "target": "/var/www/develop" }, "master": { "target": "/var/www/production" } }
-
Configure GitLab Webhook
-
Enjoy!
Note: the script look for the config file at /etc/webhook/config.json
, you can change that location at the first line of the php file