Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

[UNMAINTAINED] Service for automatic updating of git repositories from GitLab.

License

Notifications You must be signed in to change notification settings

miso-belica/gitlab-webhooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitLab webhooks handler

This is simple server (receiver) for GitLab's webhooks feature.

Installation

Make sure you have Python 2.6+/3.2+ properly installed (Windows/Linux). Then just type [sudo] pip install glhooks in your favorite shell. Now you have glhooks installed so you can run it like this python -m glhooks <path_to_config_file>.... You can find skeleton for the configuration file in git repository in config/config.ini.

I recommend Supervisor or similar application to run the glhooks server. Install it via [sudo] apt-get install supervisor. You can find the example of Supervisor configuration file for glhooks in git repository in config/glhooks.conf. But you can just create some shell script and copy it into /etc/init.d/ (example in git repository in config/glhooks.sh).

Next step is to generate a SSH key without the passphrase: ssh-keygen -b 4096 -t rsa. Then add the generated SSH public key to your GitLab account. If you have multiple SSH keys in $HOME/.ssh/ you probably has to create file $HOME/.ssh/config. You can find the example file in git repository in config/config.ssh.

Finally add the hook http://server.example.com:8000/ into your project webhooks at GitLab.

Updating

When you change at least one of the configuration files you has to restart glhooks server by [sudo] supervisorctl restart glhooks or [sudo] service glhooks restart.

Contributing

Feel free to send a pull request or to report an issue.

About

[UNMAINTAINED] Service for automatic updating of git repositories from GitLab.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published