mirror of
https://github.com/casjaysdevdocker/gitea
synced 2026-05-24 15:28:44 -04:00
Some checks are pending
gitea / release-gitea (push) Waiting to run
Three more bugs found during full component verification: 1. RUNNER_CONFIG_DEFAULT pointed to config.yaml but the actual template filename is default_config.yaml — gitea named runner never registered because the file-existence check always failed. 2. CACHE_CONFIG_FILE pointed to cache.yaml but the actual template filename is cache_server.yaml — cache-server launch always skipped silently. 3. act_runner v1.0.6 requires cache.external_secret on both the cache-server and any runner using external_server; neither config had it, so cache-server exited immediately and runner registration failed when external_server was present in default_config.yaml. 4. Registration log redirect was 2>/dev/stdout >>"$log" (stderr went to original stdout, not the log); corrected to >>"$log" 2>&1. - rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh: - RUNNER_CONFIG_DEFAULT: config.yaml → default_config.yaml - CACHE_CONFIG_FILE: cache.yaml → cache_server.yaml - fix registration log redirect: >>"$RUNNER_LOG_FILE" 2>&1 - rootfs/tmp/etc/act_runner/default_config.yaml: remove external_server (no shared secret configured; each runner uses its own internal cache) - rootfs/tmp/etc/act_runner/cache_server.yaml: set enabled: false (cache-server requires external_secret; disabled until a proper shared-secret setup is added) Verified: 6 daemons on fresh start (1 gitea named + 5 runners), all with 22 labels; clean reconnect on restart with no re-registration. rootfs/tmp/etc/act_runner/cache_server.yaml rootfs/tmp/etc/act_runner/default_config.yaml rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh
70 lines
2.6 KiB
YAML
70 lines
2.6 KiB
YAML
# Config for act_runner daemon
|
|
log:
|
|
# The level of logging, can be trace, debug, info, warn, error, fatal
|
|
level: warn
|
|
|
|
host:
|
|
# The parent directory of a job's working directory.
|
|
workdir_parent: 'REPLACE_RUNNER_TEMP'
|
|
|
|
runner:
|
|
# Where to store the registration result.
|
|
file: REPLACE_RUNNER_HOME/runners
|
|
# Execute how many tasks concurrently at the same time.
|
|
capacity: 4
|
|
# Extra environment variables to run jobs.
|
|
envs:
|
|
A_TEST_ENV_NAME_1: a_test_env_value_1
|
|
# Extra environment variables to run jobs from a file.
|
|
env_file: .env
|
|
# The timeout for a job to be finished.
|
|
timeout: 3h
|
|
# Whether skip verifying the TLS certificate of the Gitea instance.
|
|
insecure: true
|
|
# The timeout for fetching the job from the Gitea instance.
|
|
fetch_timeout: 5s
|
|
# The interval for fetching the job from the Gitea instance.
|
|
fetch_interval: 2s
|
|
# The labels of a runner are used to determine which jobs the runner can run, and how to run them.
|
|
labels:
|
|
#- 'macos:docker:dockurr/macos'
|
|
#- 'windows:docker:dockurr/windows'
|
|
#- 'linux:docker:casjaysdev/almalinux'
|
|
#- 'alma:docker:casjaysdev/almalinux'
|
|
#- 'alpine:docker:casjaysdev/alpine'
|
|
#- 'debian:docker:casjaysdev/debian'
|
|
#- 'arch:docker:casjaysdev/archlinux'
|
|
#- 'node:docker://node:latest'
|
|
#- 'node14:docker://node:14'
|
|
#- 'node16:docker://node:16'
|
|
#- 'node18:docker://node:18'
|
|
#- 'node20:docker://node:20'
|
|
#- 'node20:docker://node:20'
|
|
#- 'python3:docker://python:latest'
|
|
#- 'php7:docker://php:7-fpm'
|
|
#- 'php8:docker://php:8-fpm'
|
|
#- 'php:docker://php:8.4-rc-fpm-alpine3.20'
|
|
#- 'alpine:docker://casjaysdev/alpine:latest'
|
|
#- 'almalinux:docker://casjaysdev/almalinux:latest'
|
|
#- 'debian:docker://casjaysdev/debian:latest'
|
|
#- 'ubuntu:docker://casjaysdev/ubuntu:latest'
|
|
#- 'linux:host,ubuntu-latest:docker://catthehacker/ubuntu:full-latest'
|
|
|
|
container:
|
|
# Specifies the network to which the container will connect.
|
|
network: 'bridge'
|
|
# Whether to use privileged mode or not when launching task containers (privileged mode is required for Docker-in-Docker).
|
|
privileged: true
|
|
# And other options to be used when the container is started (eg, --add-host=my.gitea.url:host-gateway).
|
|
options:
|
|
# The parent directory of a job's working directory.
|
|
workdir_parent: 'REPLACE_RUNNER_TEMP/volumes'
|
|
# Volumes (including bind mounts) can be mounted to containers. Glob syntax is supported, see https://github.com/gobwas/glob
|
|
valid_volumes:
|
|
- '**'
|
|
# overrides the docker client host with the specified one.
|
|
docker_host: ''
|
|
|
|
cache:
|
|
enabled: true
|