26 Commits

Author SHA1 Message Date
Sam Heinz
8e477b1fca set 'var_arm64' to no for all cts 2026-05-22 23:44:47 +10:00
CanbiZ (MickLesk)
6d9d44642c Merge pull request #1645 from WaffleThief123/forgejo-runner-fix
forgejo-runner (FIX): support generated/unattended mode and configurable runner labels
2026-04-30 15:39:37 +02:00
Cyra
72b1a6460b fix(forgejo-runner): revert COMMUNITY_SCRIPTS_URL override per review
Drop the env-var indirection on the build.func source URL; it was a dev
convenience for testing against a fork and adds no user-facing value.
2026-04-29 12:01:55 -07:00
Tobias
98082e970c Update author name in forgejo-runner.sh 2026-04-21 10:28:13 +02:00
Cyra
17b2229bce fix(forgejo-runner): revert TTY check, gate on mode being explicitly set
mode is only set when the user is automating (e.g. mode=default with
var_* overrides). The default bash -c curl invocation leaves mode empty
and shows the whiptail menu, so this check won't affect interactive use.
2026-04-07 10:11:13 -07:00
Cyra
237c0b7f02 fix(forgejo-runner): only validate required vars when truly non-interactive
Check for missing token/URL only when mode is set AND there's no TTY,
so mode=default with a terminal still allows interactive prompts inside
the container.
2026-04-07 10:11:13 -07:00
Cyra
82ea3f24f1 fix(forgejo-runner): also require forgejo instance URL in unattended mode 2026-04-07 10:11:13 -07:00
Cyra
fb95fe9457 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.
2026-04-07 10:11:13 -07:00
Cyra
cb9782df2c fix(forgejo-runner): use COMMUNITY_SCRIPTS_URL for build.func sourcing
CT script hardcoded the upstream URL for build.func, so the install
script was always fetched from upstream — ignoring fork/branch fixes.
Now respects COMMUNITY_SCRIPTS_URL override, consistent with how
build.func already handles this for all other resource fetching.
2026-04-07 10:11:13 -07:00
Cyra
2145face42 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)
2026-04-07 10:11:13 -07:00
CanbiZ (MickLesk)
61d73907ec Fix update scripts: pixelfed storage backup, github-runner full config backup, forgejo-runner version check 2026-03-27 14:41:46 +01:00
Okan Celik
0708d43dc2 fix: use correct url for downloading forgejo-runner 2026-03-25 19:45:29 +01:00
CanbiZ (MickLesk)
53c1ee08fc fix: comprehensive script audit - bug fixes and optimizations
- ct/invidious.sh: fix copy-paste bug (OxiCloud code in update block)
- install/invidious-install.sh: fix sed redirect, service filename mismatch
- ct/forgejo-runner.sh: fix binary download path, bump Debian to 13
- ct/authentik.sh: add -f flag to curl (fail on HTTP errors)
- ct/localagi.sh: add -f flag to curl, add installation check guard
- ct/ente.sh: fix broken install check (/var -> /opt/ente), apt-get -> apt
- ct/garmin-grafana.sh: add explicit tarball mode to fetch_and_deploy
- install/garmin-grafana-install.sh: fix local outside function, add tarball mode
- install/ente-install.sh: uncomment cleanup_lxc
- install/github-runner-install.sh: add missing , fix msg_info text
- ct/step-ca.sh: remove duplicate success message
- ct/devuan.sh, ct/ubuntu.sh: apt-get -> apt, remove duplicate msg_ok
2026-03-23 15:26:04 +01:00
CanbiZ (MickLesk)
7ab160ff75 gitea sync 2026-03-18 14:58:47 +01:00
CanbiZ (MickLesk)
11cb4cb947 .- 2026-03-02 11:09:03 +01:00
MickLesk
5ab302102b refactor: clean COMMUNITY_SCRIPTS_URL pattern (#1449)
- ct/vm scripts: split to 2-line pattern (variable + source)
- func files: remove redundant inline defaults
- Only entry points keep the default (ct/*.sh, vm/*.sh, build.func,
  install.func, alpine-install.func)
- Downstream sources use $COMMUNITY_SCRIPTS_URL without default
2026-02-22 14:43:08 +01:00
MickLesk
4b9121f41c feat: add configurable COMMUNITY_SCRIPTS_URL for dev sourcing (#1449)
- Replace all hardcoded source URLs with $COMMUNITY_SCRIPTS_URL variable
- Default: https://git.community-scripts.org/.../ProxmoxVED/raw/branch/main
- Override: export COMMUNITY_SCRIPTS_URL=https://.../your-fork/raw/branch/xyz
- Propagates into container via build.func exports
- Updated: 43 ct scripts, 14 deferred, 22 vm scripts, 5 func files
- Document in docs/DEV_MODE.md with usage examples
- Also normalizes legacy GitHub URLs to Gitea canonical URL
2026-02-22 14:36:31 +01:00
Tobias
aef951129b Update forgejo-runner.sh 2026-02-01 14:41:46 +01:00
CanbiZ (MickLesk)
a82d04982d Improve unattended mode detection and export MODE
Enhanced the is_unattended() function to prioritize the MODE variable for detecting unattended/non-interactive mode, with detailed handling for various modes and legacy fallbacks. Also, export MODE in build_container() to inform install scripts about the current mode. Updated APP name in forgejo-runner.sh for consistency.
2026-01-27 13:38:49 +01:00
lengschder97
76620bf8c7 Fixed arch in installer script 2026-01-13 10:58:20 +01:00
Tobias
2da6c955f3 refactor 2026-01-13 10:38:06 +01:00
lengschder97
572da9a60a Fixed comments 2026-01-13 08:36:33 +01:00
lengschder97
a0cecbc773 Fixed requested changes 2026-01-13 07:49:27 +01:00
lengschder97
c88fe0a0cd Fixed greptile comments 2026-01-12 14:04:10 +01:00
lengschder97
b104727293 Fixed comments 2026-01-09 09:22:12 +01:00
sfriedrich
46e0d4f573 feat: add forgejo runner 2026-01-08 11:34:56 +01:00