diff --git a/gitea-runner/.runner b/gitea-runner/.runner new file mode 100644 index 0000000..137deaf --- /dev/null +++ b/gitea-runner/.runner @@ -0,0 +1,15 @@ +{ + "WARNING": "This file is automatically generated by act-runner. Do not edit it manually unless you know what you are doing. Removing this file will cause act runner to re-register as a new runner.", + "id": 2, + "uuid": "619db79e-39a2-4a92-9840-d6a87cde7d1f", + "name": "stppi", + "token": "7361451ecbbe1719fb071e93a334b6f6a531ac45", + "address": "http://localhost:3000/", + "labels": [ + "self-hosted:host", + "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/gitea-runner/act_runner b/gitea-runner/act_runner new file mode 100755 index 0000000..87cab39 Binary files /dev/null and b/gitea-runner/act_runner differ diff --git a/gitea-runner/nohup.out b/gitea-runner/nohup.out new file mode 100644 index 0000000..f22cdf1 --- /dev/null +++ b/gitea-runner/nohup.out @@ -0,0 +1,4 @@ +time="2026-02-18T16:33:27Z" level=info msg="Starting runner daemon" +time="2026-02-18T16:33:27Z" level=info msg="runner: stppi, with version: v0.3.0-1-g0f7efae, with labels: [self-hosted ubuntu-latest ubuntu-24.04 ubuntu-22.04], declare successfully" +time="2026-02-18T16:33:37Z" level=info msg="runner: stppi shutdown initiated, waiting 0s for running jobs to complete before shutting down" +time="2026-02-18T16:33:37Z" level=error msg="failed to fetch task" error="canceled: context canceled" diff --git a/gitea-runner/run.sh b/gitea-runner/run.sh new file mode 100755 index 0000000..5d7e5c5 --- /dev/null +++ b/gitea-runner/run.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +echo "Waiting for localhost:3000 to respond..." >&2 + +while ! curl -sf http://localhost:3000 > /dev/null 2>&1; do + sleep 2 +done + +echo "localhost:3000 is up. Starting act_runner daemon..." >&2 + +exec ./act_runner daemon +