1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# jsonnetpecker
A [Woodpecker Config Extension](https://woodpecker-ci.org/docs/usage/extensions/configuration-extension) to parse [jsonnet](https://jsonnet.org/) configs.
## Configuration
Configuration can be provided via flags, environment variables (prefixed with `JSONNETPECKER_`), or a [jsonnet](https://jsonnet.org/) config file (default: `.config.jsonnet`, override with `--config`).
| Flag | Short | Env | Default | Description |
|------|-------|-----|---------|-------------|
| `--port` | `-p` | `JSONNETPECKER_PORT` | `0` | Port to listen on |
| `--public-key` | `-k` | `JSONNETPECKER_PUBLIC_KEY` | | Woodpecker public key for verification |
| `--public-key-file` | `-K` | `JSONNETPECKER_PUBLIC_KEY_FILE` | | Path to file containing the Woodpecker public key |
| `--log-level` | `-l` | `JSONNETPECKER_LOG_LEVEL` | `info` | Log level (`debug`, `info`, `warn`, `error`) |
| `--json` | `-j` | `JSONNETPECKER_JSON` | `false` | Enable JSON logging |
### Config file example
```jsonnet
{
port: 8080,
"public-key-file": "/etc/woodpecker/public.key",
"log-level": "info",
}
```
## License
[MIT](LICENSE)
|