This commit is contained in:
ai-dev 2024-11-01 22:30:08 +01:00
parent 9abe5ed15d
commit c3a65f222b

View File

@ -40,7 +40,15 @@ GITEA_TOKEN=$(bashio::config 'gitea_token')
RUNNER_NAME=$(bashio::config 'runner_name')
RUNNER_LABEL=$(bashio::config 'runner_label')
exec /usr/local/bin/act_runner register --no-interactive --instance ${GITEA_URL} --token ${GITEA_TOKEN} --name ${RUNNER_NAME} --labels ${RUNNER_LABEL}
# Register the runner
/usr/local/bin/act_runner register --no-interactive --instance "${GITEA_URL}" --token "${GITEA_TOKEN}" --name "${RUNNER_NAME}" --labels "${RUNNER_LABEL}"
# Check if registration was successful
if [ $? -ne 0 ]; then
bashio::log.error "Failed to register act_runner."
exit 1
fi
bashio::log.info "Registration complete. Starting act_runner in daemon mode..."
bashio::log.info "Handing over control to actrunner..."
exec exec /usr/local/bin/act_runner daemon