fix: change directory for act_runner register

This commit is contained in:
2026-04-12 12:47:06 +02:00
parent b6d6e871b0
commit 3499d1461c

View File

@@ -101,7 +101,7 @@ for i in $(seq 1 4); do
useradd --base-dir %{_sharedstatedir} --create-home --shell $SHELL --system actrunner$i
fi
runuser --user=actrunner$i -- rpmdev-setuptree
runuser --user=actrunner$i -- act_runner register --instance http://127.0.0.1:3000 --labels self-hosted --name actrunner$i --no-interactive --token $ACTRUNNER_TOKEN
runuser --user=actrunner$i -- cd && act_runner register --instance http://127.0.0.1:3000 --labels self-hosted --name actrunner$i --no-interactive --token $ACTRUNNER_TOKEN
systemctl reenable actrunner@$i.service
systemctl restart actrunner@$i.service
done