# Gitea Actions Runner Configuration
# Documentation: https://docs.gitea.com/usage/actions/act-runner

log:
  level: info

runner:
  # File to store the registration token
  file: .runner
  # Capacity for parallel jobs
  capacity: 2
  # Environment variables for all jobs
  envs:
    DOCKER_HOST: unix:///var/run/docker.sock
  # Timeout for job execution (1 hour)
  timeout: 1h
  # Labels for the runner
  labels:
    - "ubuntu-latest:docker://node:20-bookworm"
    - "ubuntu-22.04:docker://ubuntu:22.04"
    - "self-hosted:host"

cache:
  enabled: true
  dir: ""
  # Cache expiration time
  host: ""
  port: 0

container:
  # Container network mode
  network: "bridge"
  # Privileged mode (needed for some Docker operations)
  privileged: false
  # Docker socket path
  docker_host: ""
  # Force pull images
  force_pull: false
  # Valid volumes that can be mounted
  valid_volumes:
    - "/var/run/docker.sock"
    - "**"

host:
  # Workdir for the runner when using host mode
  workdir_parent: ""
