#!/bin/bash # --- CONFIGURATION --- # Replace these with your actual Gitea details GITEA_URL="http://your-gitea-instance:3000" REG_TOKEN="YOUR_TOKEN_HERE" RUNNER_NAME="uk-host-runner" # Adding :host tells Gitea NOT to use Docker LABELS="ubuntu-latest:host,linux_amd64:host,self-hosted:host" echo "--- 1. Registering Runner ---" /usr/local/bin/act_runner register \ --instance "$GITEA_URL" \ --token "$REG_TOKEN" \ --name "$RUNNER_NAME" \ --labels "$LABELS" \ --no-interactive echo "--- 2. Generating Default Config ---" /usr/local/bin/act_runner generate-config > config.yaml echo "--- 3. Creating Systemd Service ---" cat <