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