fix: add actrunner config with runner location
This commit is contained in:
@@ -101,7 +101,8 @@ 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 -- cd && act_runner register --instance http://127.0.0.1:3000 --labels self-hosted --name actrunner$i --no-interactive --token $ACTRUNNER_TOKEN
|
||||
printf "runner:\n file: %{_sharedstatedir}/actrunner$i/.runner\n" > %{_sharedstatedir}/actrunner$i/config.yaml
|
||||
runuser --user=actrunner$i -- act_runner --config %{_sharedstatedir}/actrunner$i/config.yaml 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
|
||||
|
||||
Reference in New Issue
Block a user