update
This commit is contained in:
parent
9abe5ed15d
commit
c3a65f222b
@ -40,7 +40,15 @@ GITEA_TOKEN=$(bashio::config 'gitea_token')
|
|||||||
RUNNER_NAME=$(bashio::config 'runner_name')
|
RUNNER_NAME=$(bashio::config 'runner_name')
|
||||||
RUNNER_LABEL=$(bashio::config 'runner_label')
|
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
|
exec exec /usr/local/bin/act_runner daemon
|
Loading…
x
Reference in New Issue
Block a user