Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thu-cs-lab/webhookd
A simple gitlab/github web hooks daemon
https://github.com/thu-cs-lab/webhookd
gitlab rust webhookd
Last synced: 1 day ago
JSON representation
A simple gitlab/github web hooks daemon
- Host: GitHub
- URL: https://github.com/thu-cs-lab/webhookd
- Owner: thu-cs-lab
- License: gpl-3.0
- Created: 2020-03-06T08:44:49.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-15T14:52:07.000Z (3 months ago)
- Last Synced: 2024-12-13T11:02:42.548Z (10 days ago)
- Topics: gitlab, rust, webhookd
- Language: Rust
- Homepage:
- Size: 185 KB
- Stars: 17
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# webhookd
A simple GitLab/GitHub web hooks daemon. Run scripts whenever hook is triggered.
## Installation
There are two ways:
1. Run `cargo install webhookd` to install webhookd.
2. Use `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
```## Configuration
See `example.toml` for usage. Then, register this webhook in GitLab/GitHub. Currently only json is supported.
## Usage
Run webhookd manually:
```bash
> RUST_LOG=info webhookd --config config.toml
```Run webhookd in systemd:
```bash
> 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.
## License
Licensed under GPL-3.0-or-later license.