Gitlab.com & GitHub WebHooks system with PHP and YAML.
- Clone the repo:
git clone firstname.lastname@example.org:florianbeer/webhooks
- Install packages:
- Copy the
config.phpand customize it
- Add a virtual host pointing to
All set! You just have to add a custom WebHook in the Service Hooks of your Gitlab.com or GitHub repositories, pointing to
The whole point of this script is that you can add custom hooks file specific to GitHub repositories.
It's a simple YAML file that looks like this:
emails: - email@example.com master: - /usr/local/bin/composer install - php artisan migrate --env=production
So you can easily add or remove commands executed after every push.