Crates.io | webhookd |
lib.rs | webhookd |
version | 0.2.3 |
source | src |
created_at | 2020-03-06 09:00:19.190487 |
updated_at | 2024-09-15 14:52:38.667674 |
description | GitLab/GitHub webhook daemon to run scripts on trigger |
homepage | |
repository | https://github.com/jiegec/webhookd |
max_upload_size | |
id | 216032 |
size | 91,878 |
A simple GitLab/GitHub web hooks daemon. Run scripts whenever hook is triggered.
There are two ways:
cargo install webhookd
to install webhookd.cargo-deb
:> cargo install cargo-deb
> git clone https://github.com/jiegec/webhookd.git
> cd webhookd
> cargo deb --separate-debug-symbols --compress-debug-symbols --install
See example.toml
for usage. Then, register this webhook in GitLab/GitHub. Currently only json is supported.
Run webhookd manually:
> RUST_LOG=info webhookd --config config.toml
Run webhookd in systemd:
> sudo systemctl edit webhookd
# Add the following lines if needed
[Service]
User=nobody
Group=nobody
Environment="WEBHOOKD_CONFIG=/path/to/config.toml"
Then, run sudo systemctl enable --now webhookd
to activate.
Licensed under GPL-3.0-or-later license.