Add gitea-act-runner

This commit is contained in:
JuliusFreudenberger 2023-07-24 15:53:18 +02:00
parent 0282898be4
commit dd5dde3d20
3 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,9 @@
# gitea-act-runner
A runner for Gitea based on act.
## Important step when deploying
When the runner loops not being able to read the file `/config/config.yaml`, enter the container and execute
```bash
touch /config/config.yaml
```

View file

View file

@ -0,0 +1,18 @@
version: "3.8"
services:
runner:
image: gitea/act_runner:nightly
environment:
CONFIG_FILE: /config/config.yaml
GITEA_INSTANCE_URL: "${INSTANCE_URL}"
GITEA_RUNNER_REGISTRATION_TOKEN: "${REGISTRATION_TOKEN}"
GITEA_RUNNER_NAME: "${RUNNER_NAME}"
GITEA_RUNNER_LABELS: "${RUNNER_LABELS}"
volumes:
- act_runner_config:/config
- act_runner_data:/data
- /var/run/docker.sock:/var/run/docker.sock
volumes:
act_runner_config:
act_runner_data: