initial commit

This commit is contained in:
2024-10-30 10:14:34 +00:00
commit 5c5d2f5dbd
4 changed files with 25 additions and 0 deletions

3
.env.template Normal file
View File

@@ -0,0 +1,3 @@
INSTANCE_URL="https://git.myserver.com"
RUNNER_REGISTRATION_TOKEN="myregistrationtoken"
RUNNER_NAME="myserver-docker"

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
.env
data/

7
README.md Normal file
View File

@@ -0,0 +1,7 @@
# gitea runner (act-runner)
## setup
- in gitea -> administration -> actions -> runners -> "create new runner" -> get registration token
- copy and adjust .env from .env.template
- starting up should automatically register as new runner

13
compose.yaml Normal file
View File

@@ -0,0 +1,13 @@
services:
runner:
image: gitea/act_runner:nightly
restart: unless-stopped
environment:
# CONFIG_FILE: /config.yaml
GITEA_INSTANCE_URL: ${INSTANCE_URL}
GITEA_RUNNER_REGISTRATION_TOKEN: ${RUNNER_REGISTRATION_TOKEN}
GITEA_RUNNER_NAME: ${RUNNER_NAME}
# GITEA_RUNNER_LABELS: ${RUNNER_LABELS}
volumes:
- ./data:/data
- /var/run/docker.sock:/var/run/docker.sock