Gitea Runner
This service sets up a Gitea Runner.
Prerequisites
-
Generate the
config.yamlfile:docker run --entrypoint="" --rm -it gitea/act_runner:0.2.13 act_runner generate-config > config.yaml -
Configure
config.yaml, for example:cache: enabled: true dir: "" host: "192.168.8.17" port: 8088 -
Configure environment variables:
INSTANCE_URL=http://xxx:3000 REGISTRATION_TOKEN=xxxxxx RUNNER_NAME=runner-1 RUNNER_LABELS=xxxxxx
Start the Runner
docker compose up -d
Services
runner: The Gitea Runner service.
Configuration
Environment Variables
INSTANCE_URL: The URL of the Gitea instance.REGISTRATION_TOKEN: The registration token for the Gitea Runner.RUNNER_NAME: The name of the runner.RUNNER_LABELS: The labels for the runner.
Volumes
config.yaml: The configuration file for the Gitea Runner.data: A volume for storing runner data./var/run/docker.sock: For communicating with the Docker daemon.