From ccbf6fd2cb3130c2474e5e336ac7e8cf69a6ab13 Mon Sep 17 00:00:00 2001 From: hermes Date: Mon, 5 Oct 2026 22:08:22 +0000 Subject: [PATCH 1/7] feat(hermes_infra/gitea): add runner on rudolf-T --- poc/gitea/stack-compose.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/poc/gitea/stack-compose.yml b/poc/gitea/stack-compose.yml index 7f20f19..1901c8d 100644 --- a/poc/gitea/stack-compose.yml +++ b/poc/gitea/stack-compose.yml @@ -47,6 +47,41 @@ services: secrets: - gitea_cache_secret deploy: + placement: + constraints: + - node.hostname != rudolf-T + restart_policy: + condition: on-failure + delay: 5s + max_attempts: 3 + + runner_rudolf_t: + image: docker.io/gitea/act_runner:nightly + entrypoint: ["/usr/local/bin/runner-run.sh"] + environment: + CONFIG_FILE: /cfg/config.yaml + GITEA_INSTANCE_URL: "https://gitea.rudolf.keenetic.link" + GITEA_RUNNER_REGISTRATION_TOKEN: "ojWqzQ4fj9GsLRIhnC7ELAV5Y5MYyhet36tno8fz" + GITEA_RUNNER_NAME: "runner2" + GITEA_RUNNER_LABELS: "runner_label1" + ACT_RUNNER_EXTERNAL_SECRET_FILE: /run/secrets/gitea_cache_secret + networks: + - gitea + configs: + - source: runner_config + target: /cfg/config.yaml + mode: 0444 + - source: runner_run + target: /usr/local/bin/runner-run.sh + mode: 0755 + volumes: + - /var/run/docker.sock:/var/run/docker.sock + secrets: + - gitea_cache_secret + deploy: + placement: + constraints: + - node.hostname == rudolf-T restart_policy: condition: on-failure delay: 5s -- 2.54.0 From 3c759e20df73c7070b8ee46c4758830d6ca305ff Mon Sep 17 00:00:00 2001 From: hermes Date: Mon, 5 Oct 2026 22:27:05 +0000 Subject: [PATCH 2/7] fix(hermes_infra/gitea): pin primary runner to odroid --- poc/gitea/stack-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poc/gitea/stack-compose.yml b/poc/gitea/stack-compose.yml index 1901c8d..c9544a0 100644 --- a/poc/gitea/stack-compose.yml +++ b/poc/gitea/stack-compose.yml @@ -49,7 +49,7 @@ services: deploy: placement: constraints: - - node.hostname != rudolf-T + - node.hostname == odroid restart_policy: condition: on-failure delay: 5s -- 2.54.0 From aab6e24b2280f1f369358ccad6e4534f71a89a5c Mon Sep 17 00:00:00 2001 From: admin Date: Tue, 6 Oct 2026 11:18:51 +0200 Subject: [PATCH 3/7] Update poc/gitea/stack-compose.yml --- poc/gitea/stack-compose.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/poc/gitea/stack-compose.yml b/poc/gitea/stack-compose.yml index c9544a0..9c27dc8 100644 --- a/poc/gitea/stack-compose.yml +++ b/poc/gitea/stack-compose.yml @@ -1,4 +1,3 @@ - # Gitea Actions stack. Uses a dedicated act_runner cache-server so that # job-container networks can reach the cache backend via Swarm service DNS # (gitea_cache_server:37051) instead of the unreachable IP the built-in @@ -61,7 +60,7 @@ services: environment: CONFIG_FILE: /cfg/config.yaml GITEA_INSTANCE_URL: "https://gitea.rudolf.keenetic.link" - GITEA_RUNNER_REGISTRATION_TOKEN: "ojWqzQ4fj9GsLRIhnC7ELAV5Y5MYyhet36tno8fz" + GITEA_RUNNER_REGISTRATION_TOKEN: "iKSYzy3nKKTqxxgc9Tpa41A3ou6zCCXVqpwlsuEZ" GITEA_RUNNER_NAME: "runner2" GITEA_RUNNER_LABELS: "runner_label1" ACT_RUNNER_EXTERNAL_SECRET_FILE: /run/secrets/gitea_cache_secret -- 2.54.0 From 7d200aa43c730383c37eeac4b17bbf78b8bab29a Mon Sep 17 00:00:00 2001 From: admin Date: Tue, 6 Oct 2026 11:36:41 +0200 Subject: [PATCH 4/7] Update poc/gitea/stack-compose.yml --- poc/gitea/stack-compose.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/poc/gitea/stack-compose.yml b/poc/gitea/stack-compose.yml index 9c27dc8..9f3f9a7 100644 --- a/poc/gitea/stack-compose.yml +++ b/poc/gitea/stack-compose.yml @@ -16,6 +16,10 @@ services: - data:/data - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro + deploy: + placement: + constraints: + - node.hostname == odroid ports: - "3002:3000" - "222:22" -- 2.54.0 From 6710fbb180133d95614e4899e8d2cbf86db0451d Mon Sep 17 00:00:00 2001 From: hermes Date: Tue, 6 Oct 2026 15:08:00 +0000 Subject: [PATCH 5/7] fix(gitea): set overlay MTU for Tailscale path --- poc/gitea/stack-compose.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/poc/gitea/stack-compose.yml b/poc/gitea/stack-compose.yml index 9f3f9a7..5665751 100644 --- a/poc/gitea/stack-compose.yml +++ b/poc/gitea/stack-compose.yml @@ -120,6 +120,8 @@ networks: external: true gitea: driver: overlay + driver_opts: + com.docker.network.driver.mtu: "1200" configs: runner_config: -- 2.54.0 From 99407b8a133c67b4eab57a778095c42d67ad0fa5 Mon Sep 17 00:00:00 2001 From: hermes Date: Tue, 6 Oct 2026 22:27:45 +0000 Subject: [PATCH 6/7] fix(gitea): refresh runner2 registration token --- poc/gitea/stack-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poc/gitea/stack-compose.yml b/poc/gitea/stack-compose.yml index 5665751..62d519e 100644 --- a/poc/gitea/stack-compose.yml +++ b/poc/gitea/stack-compose.yml @@ -64,7 +64,7 @@ services: environment: CONFIG_FILE: /cfg/config.yaml GITEA_INSTANCE_URL: "https://gitea.rudolf.keenetic.link" - GITEA_RUNNER_REGISTRATION_TOKEN: "iKSYzy3nKKTqxxgc9Tpa41A3ou6zCCXVqpwlsuEZ" + GITEA_RUNNER_REGISTRATION_TOKEN: "ZIB6L21imA3XJkq65Cq1h43NzB5U1zhAJK9ybfCz" GITEA_RUNNER_NAME: "runner2" GITEA_RUNNER_LABELS: "runner_label1" ACT_RUNNER_EXTERNAL_SECRET_FILE: /run/secrets/gitea_cache_secret -- 2.54.0 From af9f62c525e934d60a3b8564e7d69bf87f341c12 Mon Sep 17 00:00:00 2001 From: rudolf Date: Thu, 8 Oct 2026 13:46:32 +0200 Subject: [PATCH 7/7] x --- poc/gitea/stack-compose.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/poc/gitea/stack-compose.yml b/poc/gitea/stack-compose.yml index 62d519e..fe2e98b 100644 --- a/poc/gitea/stack-compose.yml +++ b/poc/gitea/stack-compose.yml @@ -13,7 +13,7 @@ services: - gitea - nginx_ingress volumes: - - data:/data + - /root/volumes/gitea:/data - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro deploy: @@ -139,11 +139,11 @@ secrets: external: true volumes: - data: - driver: local - driver_opts: - type: nfs - o: addr=192.168.1.96 - device: :/root/volumes/gitea - # device: :/media/DATA/runtime/gitea + # data: + # driver: local + # driver_opts: + # type: nfs + # o: addr=192.168.1.96 + # device: :/root/volumes/gitea + # # device: :/media/DATA/runtime/gitea cache_data: \ No newline at end of file -- 2.54.0