fix(forgejo-runner): fail early when token missing in unattended mode
Abort before build_container if mode is set (unattended) but no runner registration token was provided. Avoids a 20+ minute container build only to fail at the registration step.
This commit is contained in:
@@ -62,6 +62,12 @@ function update_script() {
|
|||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Fail early if running unattended without a runner token
|
||||||
|
if [[ -n "${mode:-}" && -z "${var_forgejo_runner_token:-}" ]]; then
|
||||||
|
msg_error "var_forgejo_runner_token is required for unattended installs."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
start
|
start
|
||||||
build_container
|
build_container
|
||||||
description
|
description
|
||||||
|
|||||||
Reference in New Issue
Block a user