diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2022-03-22 01:31:27 +0100 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2022-03-22 01:31:27 +0100 |
| commit | cc4ba3b063f14943579ffbfe416828590f70ae0a (patch) | |
| tree | af2127920fb57603206ca670beb63b5d58650fb8 /schemas_json/server.yaml | |
| parent | c594b1fca854a7b9fb73d854a9830143cd1032fc (diff) | |
WIP major rewrite
Diffstat (limited to 'schemas_json/server.yaml')
| -rw-r--r-- | schemas_json/server.yaml | 93 |
1 files changed, 63 insertions, 30 deletions
diff --git a/schemas_json/server.yaml b/schemas_json/server.yaml index 4a576b2..c44528a 100644 --- a/schemas_json/server.yaml +++ b/schemas_json/server.yaml @@ -1,37 +1,70 @@ --- "$schema": "http://json-schema.org/schema#" id: "hatter://server.yaml#" -title: Server -description: Server configuration type: object required: - - repositories + - repos properties: - log: - "$ref": "hatter://logging.yaml#" - host: - title: Host - description: Listening host name - type: string - default: "0.0.0.0" - port: - title: TCP port - description: Listening TCP port - type: integer - default: 24000 - db_path: - title: DB path - description: SQLite database path - type: string - default: hatter.db - webhook_path: - title: Webhook path - type: string - default: '/webhook' - repositories: - title: Repositories - description: List of all repository urls - type: array - items: - type: string + env: + type: object + description: | + environment variables avaliable to all repositories + (keys represent variable names) + patternProperties: + ".+": + type: string + description: environment variable value + repos: + type: object + description: git repositories (keys represent repository names) + patternProperties: + ".+": + type: object + required: + - url + properties: + url: + type: string + description: remote repository location + refs: + type: array + description: git references used for commit listing + items: + type: string + default: + - "refs/heads/*" + actions: + type: array + decription: action file paths inside repository + items: + type: string + default: + - ".hatter.yaml" + min_sync_delay: + type: + - number + - "null" + description: | + minimum time delay (in seconds) between + two consecutive remote ref synchronizations + (null disables synchronization limiting) + default: 5 + max_sync_delay: + type: + - number + - "null" + description: | + maximum time delay (in seconds) between + two consecutive remote ref synchronizations + (null disables periodic synchronization) + default: null + env: + type: object + description: | + environment variables avaliable to this repository + (keys represent variable names) + patternProperties: + ".+": + type: string + description: environment variable value ... |
