diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..3467fc6 --- /dev/null +++ b/.env.example @@ -0,0 +1,4 @@ +INSTANCE_URL=https://gitea.creative-dragonslayer.de +REGISTRATION_TOKEN=ABC +RUNNER_NAME=gitea_main +RUNNER_LABELS= diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6f27dc3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.vscode +.env diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..e69de29 diff --git a/data/.runner b/data/.runner new file mode 100644 index 0000000..f2da7a8 --- /dev/null +++ b/data/.runner @@ -0,0 +1,14 @@ +{ + "WARNING": "This file is automatically generated by Gitea Runner. Do not edit it manually unless you know what you are doing. Removing this file will cause Gitea Runner to re-register as a new runner.", + "id": 1, + "uuid": "b3c25705-94ae-439f-b97b-3f7abbba42f9", + "name": "gitea_main", + "token": "941bcb1012e83d49063c809fb49036abb30f79a6", + "address": "https://gitea.creative-dragonslayer.de", + "labels": [ + "ubuntu-latest:docker://docker.gitea.com/runner-images:ubuntu-latest", + "ubuntu-24.04:docker://docker.gitea.com/runner-images:ubuntu-24.04", + "ubuntu-22.04:docker://docker.gitea.com/runner-images:ubuntu-22.04" + ], + "ephemeral": false +} diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..263c01e --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,13 @@ +services: + runner: + image: docker.io/gitea/runner:latest + environment: + CONFIG_FILE: /config.yaml + GITEA_INSTANCE_URL: "${INSTANCE_URL}" + GITEA_RUNNER_REGISTRATION_TOKEN: "${REGISTRATION_TOKEN}" + GITEA_RUNNER_NAME: "${RUNNER_NAME}" + GITEA_RUNNER_LABELS: "${RUNNER_LABELS}" + volumes: + - ./config.yaml:/config.yaml + - ./data:/data + - /var/run/docker.sock:/var/run/docker.sock