From f42d25cb087b2829c66cf090ad1b4db674327a56 Mon Sep 17 00:00:00 2001 From: DragonSlayer_14 Date: Mon, 8 Jun 2026 17:29:40 +0200 Subject: [PATCH] =?UTF-8?q?Feat:=20F=C3=BCgt=20Konfiguration=20hinzu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 4 ++++ .gitignore | 2 ++ config.yaml | 0 data/.runner | 14 ++++++++++++++ docker-compose.yaml | 13 +++++++++++++ 5 files changed, 33 insertions(+) create mode 100644 .env.example create mode 100644 .gitignore create mode 100644 config.yaml create mode 100644 data/.runner create mode 100644 docker-compose.yaml 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