diff --git a/infra/runner-entrypoint.sh b/infra/runner-entrypoint.sh index 98611a3..8ddee42 100755 --- a/infra/runner-entrypoint.sh +++ b/infra/runner-entrypoint.sh @@ -10,11 +10,12 @@ CONFIG=/data/.runner if [ ! -f "$CONFIG" ]; then echo "[runner] No registration found — registering with Forgejo…" - forgejo-runner create-runner-file \ + forgejo-runner register \ --instance "${FORGEJO_INSTANCE_URL}" \ - --secret "${FORGEJO_RUNNER_TOKEN}" \ + --token "${FORGEJO_RUNNER_TOKEN}" \ --name "${FORGEJO_RUNNER_NAME:-hiy-runner}" \ - --connect + --labels "ubuntu-latest:docker://node:20-bookworm,ubuntu-22.04:docker://node:20-bookworm" \ + --no-interactive echo "[runner] Registration complete." fi