fix: add labels to Gitea Actions Runner registration and service configuration
This commit is contained in:
@@ -135,7 +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
|
||||
./act_runner register --instance "https://gitea.malmert.de/" --token "$RUNNER_TOKEN" --name "$RUNNER_NAME" --labels "linux_amd64:host" --no-interactive
|
||||
|
||||
# Systemd-Service einrichten
|
||||
cat >/etc/systemd/system/gitea-act-runner.service <<EOL
|
||||
@@ -144,7 +144,7 @@ Description=Gitea Actions Runner (act_runner)
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=$RUNNER_DIR/act_runner daemon
|
||||
ExecStart=$RUNNER_DIR/act_runner daemon --labels "linux_amd64:host"
|
||||
WorkingDirectory=$RUNNER_DIR
|
||||
Restart=always
|
||||
User=root
|
||||
|
||||
Reference in New Issue
Block a user