You've already forked ansible-role-gitea-runner
fix: extend default config
This commit is contained in:
@@ -29,6 +29,20 @@ gitea_runner_config:
|
||||
fetch_timeout: 5s
|
||||
## @param gitea_runner_config.runner.fetch_interval The interval for fetching the job from the Gitea instance
|
||||
fetch_interval: 2s
|
||||
## @param gitea_runner_config.runner.fetch_interval_max The maximum interval for fetching the job from the Gitea instance.
|
||||
fetch_interval_max: 5s
|
||||
## @param gitea_runner_config.runner.workdir_cleanup_age The maximum interval for fetching the job from the Gitea instance.
|
||||
workdir_cleanup_age: 24h
|
||||
## @param gitea_runner_config.runner.idle_cleanup_interval Cadence for the idle stale bind-workdir cleanup pass.
|
||||
idle_cleanup_interval: 10m
|
||||
## @param gitea_runner_config.runner.log_report_interval The base interval for periodic log flush to the Gitea instance.
|
||||
log_report_interval: 5s
|
||||
## @param gitea_runner_config.runner.log_report_max_latency The maximum time a log row can wait before being sent.
|
||||
log_report_max_latency: 3s
|
||||
## @param gitea_runner_config.runner.log_report_batch_size Flush logs immediately when the buffer reaches this many rows.
|
||||
log_report_batch_size: 100
|
||||
## @param gitea_runner_config.runner.state_report_interval The interval for reporting task state (step status, timing) to the Gitea instance.
|
||||
state_report_interval: 5s
|
||||
## @param gitea_runner_config.runner.github_mirror The mirror address of the github that pulls the action repository
|
||||
github_mirror: ''
|
||||
## @param gitea_runner_config.runner.labels The labels of a runner are used to determine which jobs the runner can run
|
||||
@@ -36,6 +50,8 @@ gitea_runner_config:
|
||||
- "ubuntu-latest:docker://docker.gitea.com/runner-images:ubuntu-latest"
|
||||
- "ubuntu-22.04:docker://docker.gitea.com/runner-images:ubuntu-22.04"
|
||||
- "ubuntu-20.04:docker://docker.gitea.com/runner-images:ubuntu-20.04"
|
||||
## @param gitea_runner_config.runner.allocate_pty TODO
|
||||
allocate_pty: false
|
||||
|
||||
cache:
|
||||
## @param gitea_runner_config.cache.enabled Enable cache server to use actions/cache
|
||||
@@ -48,6 +64,10 @@ gitea_runner_config:
|
||||
port: 0
|
||||
## @param gitea_runner_config.cache.external_server The external cache server URL
|
||||
external_server: ""
|
||||
## @param gitea_runner_config.cache.external_secret Shared secret between this runner and the external `gitea-runner cache-server`.
|
||||
external_secret: ""
|
||||
## @param gitea_runner_config.cache.offline_mode When true, reuse a cached action instead of fetching from the remote on every job.
|
||||
offline_mode: false
|
||||
|
||||
container:
|
||||
## @param gitea_runner_config.container.network Specifies the network to which the container will connect
|
||||
@@ -71,10 +91,19 @@ gitea_runner_config:
|
||||
## @param gitea_runner_config.container.docker_timeout Timeout to wait for the docker daemon to be reachable
|
||||
docker_timeout: 0s
|
||||
|
||||
## @param gitea_runner_config.container.bind_workdir Bind the workspace to the host filesystem instead of using Docker volumes. This is required for Docker-in-Docker (DinD) setups when jobs use docker compose with bind mounts (e.g., ".:/app"), as volume-based workspaces are not accessible from the DinD daemon's filesystem.
|
||||
bind_workdir: false
|
||||
|
||||
host:
|
||||
## @param gitea_runner_config.host.workdir_parent The parent directory of a job's working directory
|
||||
workdir_parent:
|
||||
|
||||
metrics:
|
||||
## @param gitea_runner_config.metrics.enabled Enable exposing metrics at http://<addr>/metrics and a liveness check at /healthz.
|
||||
enabled: false
|
||||
## @param gitea_runner_config.metrics.addr The address for the metrics HTTP server.
|
||||
addr: "127.0.0.1:9101"
|
||||
|
||||
## @param gitea_runner_unix_extra_groups List of additional unix groups to append the executing gitea-runner user to.
|
||||
gitea_runner_unix_extra_groups: []
|
||||
# - docker
|
||||
|
||||
Reference in New Issue
Block a user