# based on https://gitea.com/gitea/act_runner/src/tag/v0.2.1/internal/pkg/config/config.example.yaml log: # The level of logging, can be trace, debug, info, warn, error, fatal level: ${GITEA_RUNNER_LOG_LEVEL:-info} runner: # Where to store the registration result. file: '${GITEA_RUNNER_REGISTRATION_FILE:-/data/.runner}' # Execute how many tasks concurrently at the same time. capacity: ${GITEA_RUNNER_MAX_PARALLEL_JOBS:-1} # Extra environment variables to run jobs. envs: ${GITEA_RUNNER_ENV_VAR_1_NAME:-GITEA_RUNNER_ENV_VAR_1}: '${GITEA_RUNNER_ENV_VAR_1_VALUE:-}' ${GITEA_RUNNER_ENV_VAR_2_NAME:-GITEA_RUNNER_ENV_VAR_2}: '${GITEA_RUNNER_ENV_VAR_2_VALUE:-}' ${GITEA_RUNNER_ENV_VAR_3_NAME:-GITEA_RUNNER_ENV_VAR_3}: '${GITEA_RUNNER_ENV_VAR_3_VALUE:-}' ${GITEA_RUNNER_ENV_VAR_4_NAME:-GITEA_RUNNER_ENV_VAR_4}: '${GITEA_RUNNER_ENV_VAR_4_VALUE:-}' ${GITEA_RUNNER_ENV_VAR_5_NAME:-GITEA_RUNNER_ENV_VAR_5}: '${GITEA_RUNNER_ENV_VAR_5_VALUE:-}' ${GITEA_RUNNER_ENV_VAR_6_NAME:-GITEA_RUNNER_ENV_VAR_6}: '${GITEA_RUNNER_ENV_VAR_6_VALUE:-}' ${GITEA_RUNNER_ENV_VAR_7_NAME:-GITEA_RUNNER_ENV_VAR_7}: '${GITEA_RUNNER_ENV_VAR_7_VALUE:-}' ${GITEA_RUNNER_ENV_VAR_8_NAME:-GITEA_RUNNER_ENV_VAR_8}: '${GITEA_RUNNER_ENV_VAR_8_VALUE:-}' ${GITEA_RUNNER_ENV_VAR_9_NAME:-GITEA_RUNNER_ENV_VAR_9}: '${GITEA_RUNNER_ENV_VAR_9_VALUE:-}' # Extra environment variables to run jobs from a file. # It will be ignored if it's empty or the file doesn't exist. env_file: '${GITEA_RUNNER_ENV_FILE:-/data/.env}' # The timeout for a job to be finished. # Please note that the Gitea instance also has a timeout (3h by default) for the job. # So the job could be stopped by the Gitea instance if it's timeout is shorter than this. timeout: '${GITEA_JOB_TIMEOUT:-3h}' # Whether skip verifying the TLS certificate of the Gitea instance. insecure: ${GITEA_INSTANCE_INSECURE:-false} # The timeout for fetching the job from the Gitea instance. fetch_timeout: '${GITEA_RUNNER_FETCH_TIMEOUT:-5s}' # The interval for fetching the job from the Gitea instance. fetch_interval: '${GITEA_RUNNER_FETCH_INTERVAL:-2s}' # The labels of a runner are used to determine which jobs the runner can run, and how to run them. # Like: ["macos-arm64:host", "ubuntu-latest:docker://node:16-bullseye", "ubuntu-22.04:docker://node:16-bullseye"] # If it's empty when registering, it will ask for inputting labels. # If it's empty when execute "daemon", will use labels in ".runner" file. #labels: [] cache: # Enable cache server to use actions/cache. enabled: ${ACT_CACHE_SERVER_ENABLED:-true} # The directory to store the cache data. # If it's empty, the cache data will be stored in $HOME/.cache/actcache. dir: '${ACT_CACHE_SERVER_DIR:-/data/cache/server}' # The host of the cache server. # It's not for the address to listen, but the address to connect from job containers. # So 0.0.0.0 is a bad choice, leave it empty to detect automatically. host: '${ACT_CACHE_SERVER_HOST:-}' # The port of the cache server. # 0 means to use a random available port. port: ${ACT_CACHE_SERVER_PORT:-0} container: # Specifies the network to which the container will connect. # Could be host, bridge or the name of a custom network. # If it's empty, act_runner will create a network automatically. network: ${GITEA_RUNNER_JOB_CONTAINER_NETWORK:-bridge} # Whether to use privileged mode or not when launching task containers (privileged mode is required for Docker-in-Docker). privileged: ${GITEA_RUNNER_JOB_CONTAINER_PRIVILEGED:-false} # And other options to be used when the container is started (eg, --add-host=my.gitea.url:host-gateway). options: ${GITEA_RUNNER_JOB_CONTAINER_OPTIONS:-} # The parent directory of a job's working directory. # If it's empty, /workspace will be used. workdir_parent: ${GITEA_RUNNER_JOB_CONTAINER_WORKDIR_PARENT:-/workspace} # overrides the docker client host with the specified one. # If it's empty, act_runner will find an available docker host automatically. # If it's "-", act_runner will find an available docker host automatically, but the docker host won't be mounted to the job containers and service containers. # If it's not empty or "-", the specified docker host will be used. An error will be returned if it doesn't work. docker_host: ${GITEA_RUNNER_JOB_CONTAINER_DOCKER_HOST:-} host: # The parent directory of a job's working directory. # If it's empty, $HOME/.cache/act/ will be used. workdir_parent: ${GITEA_RUNNER_HOST_WORKDIR_PARENT:-}