mirror of
https://git.turbo-data.com/nprasad2077/docker-templates.git
synced 2026-09-22 16:15:53 +00:00
43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
# Sample Gitea Actions runner config for gitea/act_runner.
|
|
# Copy this file to /portainer/Files/AppData/Config/Gitea-runner/config.yaml
|
|
# (the path mounted as /config.yaml in docker-compose.yml), then adjust labels
|
|
# and capacity for your host. Full reference:
|
|
# https://docs.gitea.com/usage/actions/act-runner
|
|
#
|
|
# Generate a fresh annotated example at any time with:
|
|
# docker run --rm --entrypoint='' gitea/act_runner:latest act_runner generate-config
|
|
|
|
log:
|
|
level: info
|
|
|
|
runner:
|
|
# Registration file, persisted in /data (the /data volume).
|
|
file: .runner
|
|
# How many jobs this runner executes in parallel.
|
|
capacity: 2
|
|
# Max duration for a single job before it is cancelled.
|
|
timeout: 3h
|
|
# How often/long the runner polls Gitea for new jobs.
|
|
fetch_timeout: 5s
|
|
fetch_interval: 2s
|
|
labels:
|
|
- 'ubuntu-latest:docker://node:20-bookworm'
|
|
- 'ubuntu-22.04:docker://node:20-bookworm'
|
|
- 'debian-latest:docker://node:20-bookworm'
|
|
|
|
cache:
|
|
enabled: true
|
|
# Local cache dir for actions/cache. Each runner keeps its own cache
|
|
# unless you point multiple runners at one shared cache-server.
|
|
dir: /tmp/cache
|
|
|
|
container:
|
|
# Docker network jobs attach to. Use "bridge" for the default setup above.
|
|
network_mode: bridge
|
|
privileged: false
|
|
# Where job workdirs live inside job containers.
|
|
workdir_parent: /workspace
|
|
|
|
host:
|
|
workdir_parent: /tmp
|