Add missing flag and docs (#825)

* Add missing flag and docs

Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
Co-authored-by: Anbraten <anton@ju60.de>
This commit is contained in:
Lukas Bachschwell 2022-03-02 16:49:00 +01:00 committed by GitHub
parent 2f6f44417d
commit c16d42f81e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 3 deletions

View file

@ -169,9 +169,10 @@ var flags = []cli.Flag{
Usage: "url used for calling configuration service endpoint",
},
&cli.StringFlag{
EnvVars: []string{"WOODPECKER_CONFIG_SERVICE_SECRET"},
Name: "config-service-secret",
Usage: "secret to sign requests send to configuration service",
EnvVars: []string{"WOODPECKER_CONFIG_SERVICE_SECRET"},
Name: "config-service-secret",
Usage: "secret to sign requests send to configuration service",
FilePath: os.Getenv("WOODPECKER_CONFIG_SERVICE_SECRET_FILE"),
},
&cli.StringFlag{
EnvVars: []string{"WOODPECKER_DATABASE_DRIVER"},

View file

@ -334,6 +334,22 @@ Comma-separated list to limit the specific CPUs or cores a pipeline container ca
Example: `WOODPECKER_LIMIT_CPU_SET=1,2`
### `WOODPECKER_CONFIG_SERVICE_ENDPOINT`
> Default: ``
Specify a configuration service endpoint, see [Configuration Extension](docs/administration/external-configuration-api)
### `WOODPECKER_CONFIG_SERVICE_SECRET`
> Default: ``
Specify a signing secret for the configuration service endpoint, see [Configuration Extension](docs/administration/external-configuration-api)
### `WOODPECKER_CONFIG_SERVICE_SECRET_FILE`
> Default: ``
Read the value for `WOODPECKER_CONFIG_SERVICE_SECRET` from the specified filepath
---
### `WOODPECKER_GITHUB_...`