fix: create act runners after gitea start

This commit is contained in:
2026-04-11 15:38:19 +02:00
parent 28d629073a
commit d12efca2e3

View File

@@ -89,6 +89,11 @@ unxz $ACTRUNNER_BINARY.xz
chmod 755 $ACTRUNNER_BINARY
mv $ACTRUNNER_BINARY %{_sbindir}/act_runner
# Restart gitea and nginx services
systemctl daemon-reload
systemctl reenable gitea.service
systemctl restart gitea.service nginx.service
# Create 4 actrunner users
export ACTRUNNER_TOKEN=$(runuser --user=gitea -- gitea actions generate-runner-token)
for i in $(seq 1 4); do
@@ -101,11 +106,6 @@ for i in $(seq 1 4); do
systemctl restart actrunner@$i.service
done
# Restart gitea and nginx services
systemctl daemon-reload
systemctl reenable gitea.service
systemctl restart gitea.service nginx.service
%postun
# Display commands and exit on error
set -xe