fix: add labels to Gitea Actions Runner registration and service configuration

This commit is contained in:
2025-11-22 15:06:47 +01:00
parent fcd59ca354
commit 7442216e07

View File

@@ -135,7 +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 ./act_runner register --instance "https://gitea.malmert.de/" --token "$RUNNER_TOKEN" --name "$RUNNER_NAME" --labels "linux_amd64:host" --no-interactive
# Systemd-Service einrichten # Systemd-Service einrichten
cat >/etc/systemd/system/gitea-act-runner.service <<EOL cat >/etc/systemd/system/gitea-act-runner.service <<EOL
@@ -144,7 +144,7 @@ Description=Gitea Actions Runner (act_runner)
After=network.target After=network.target
[Service] [Service]
ExecStart=$RUNNER_DIR/act_runner daemon ExecStart=$RUNNER_DIR/act_runner daemon --labels "linux_amd64:host"
WorkingDirectory=$RUNNER_DIR WorkingDirectory=$RUNNER_DIR
Restart=always Restart=always
User=root User=root