fix(forgejo-runner): support generated/unattended mode and configurable runner labels

- Export app-specific variables (var_forgejo_instance, var_forgejo_runner_token,
  var_runner_labels) in ct script so they survive lxc-attach into the container
- Replace nonexistent prompt_input_required/show_missing_values_warning calls
  with standard read prompts that skip when variables are pre-set
- Add hard error when no runner token is provided
- Make runner labels configurable via var_runner_labels instead of hardcoded
- Update default runner image from node:20-bookworm to node:22-bookworm (Node 22 LTS)
This commit is contained in:
Cyra
2026-03-29 17:25:13 -07:00
parent 587f9f9b0e
commit 2145face42
2 changed files with 31 additions and 16 deletions

View File

@@ -18,6 +18,12 @@ var_unprivileged="${var_unprivileged:-1}"
var_nesting="${var_nesting:-1}"
var_keyctl="${var_keyctl:-1}"
# App-specific variables (not in build.func whitelist)
# Export so they survive lxc-attach into the container
export var_forgejo_instance="${var_forgejo_instance:-}"
export var_forgejo_runner_token="${var_forgejo_runner_token:-}"
export var_runner_labels="${var_runner_labels:-}"
header_info "$APP"
variables
color