Build a Debian package
The first version `0.1.0-rc.0` and metadata for `cargo-deb` is now in `Cargo.toml`. For that, the service file as well as the config file were moved. For a improved systemd service file the `User` and `Group` is now set via variables and the log level is now set to `info`. In the previous version of the service file the parameter for `ExecStart` was missing which prevented this file from working. The dependencies in `Cargo.lock` were updated.
This commit is contained in:
parent
17778cf8b4
commit
d552e29e8f
4 changed files with 28 additions and 16 deletions
15
Cargo.toml
15
Cargo.toml
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "webhookey"
|
||||
version = "0.1.0"
|
||||
authors = ["finga <coding@onders.org>"]
|
||||
version = "0.1.0-rc.0"
|
||||
authors = ["finga <webhookey@onders.org>"]
|
||||
edition = "2018"
|
||||
license = "GPL-3.0-or-later"
|
||||
readme = "README.md"
|
||||
|
@ -27,3 +27,14 @@ hex = "0.4"
|
|||
ipnet = { version = "2.3", features = ["serde"] }
|
||||
thiserror = "1.0"
|
||||
run_script = "0.7"
|
||||
|
||||
[package.metadata.deb]
|
||||
extended-description = "Webhookey receives requests as for example sent by Gitea's webhooks. Those requests are filtered against configurable filters. When a filter matches values from the header and the body can be passed to scripts which are then executed."
|
||||
maintainer-scripts = "debian/"
|
||||
systemd-units = { enable = false }
|
||||
assets = [
|
||||
["config.yml", "etc/webhookey/", "644"],
|
||||
["target/release/webhookey", "usr/bin/", "755"],
|
||||
["README.md", "usr/share/doc/cargo-deb/README", "644"],
|
||||
["debian/service", "lib/systemd/system/webhookey.service", "644"],
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue