refactor: simplify Gitea Actions Runner registration and service configuration

This commit is contained in:
2025-11-22 15:01:37 +01:00
parent 7deebadeb5
commit fcd59ca354

View File

@@ -135,10 +135,7 @@ chmod +x $GITEA_RUNNER_BIN
mv $GITEA_RUNNER_BIN act_runner
# Runner registrieren
./act_runner register --instance "https://gitea.malmert.de/" --token "$RUNNER_TOKEN" --name "$RUNNER_NAME" --no-interactive --disable-docker
# Konfigurationsdatei generieren (optional)
./act_runner generate-config > config.yaml
./act_runner register --instance "https://gitea.malmert.de/" --token "$RUNNER_TOKEN" --name "$RUNNER_NAME" --no-interactive
# Systemd-Service einrichten
cat >/etc/systemd/system/gitea-act-runner.service <<EOL
@@ -147,7 +144,7 @@ Description=Gitea Actions Runner (act_runner)
After=network.target
[Service]
ExecStart=$RUNNER_DIR/act_runner daemon --config $RUNNER_DIR/config.yaml --disable-docker
ExecStart=$RUNNER_DIR/act_runner daemon
WorkingDirectory=$RUNNER_DIR
Restart=always
User=root