Forgejo-Runner#15046
Open
push-app-to-main[bot] wants to merge 2 commits into
Open
Conversation
CrazyWolf13
requested changes
Jun 11, 2026
Comment on lines
+22
to
+23
| # App-specific variables (not in build.func whitelist) | ||
| # Export so they survive lxc-attach into the container |
Member
There was a problem hiding this comment.
is this documented in website?
|
|
||
| var_unprivileged="${var_unprivileged:-1}" | ||
| var_nesting="${var_nesting:-1}" | ||
| var_keyctl="${var_keyctl:-1}" |
Member
There was a problem hiding this comment.
Dont ask me. You write more with the dev in VED ^^ ask him
| msg_ok "Stopped Services" | ||
|
|
||
| msg_info "Updating Forgejo Runner to v${RELEASE}" | ||
| curl -fsSL "https://code.forgejo.org/forgejo/runner/releases/download/v${RELEASE}/forgejo-runner-${RELEASE}-linux-amd64" -o /usr/local/bin/forgejo-runner |
Member
There was a problem hiding this comment.
possibly use this safe curl download func?
| description | ||
|
|
||
| msg_ok "Completed successfully!\n" | ||
| echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" |
Member
There was a problem hiding this comment.
instructions what is to do after installation
| setting_up_container | ||
| network_check | ||
| update_os | ||
| setup_yq |
Member
There was a problem hiding this comment.
Suggested change
| setup_yq | |
| setup_yq |
| update_os | ||
| setup_yq | ||
|
|
||
| # Get required configuration — skip prompts if already set (generated/unattended mode) |
Member
There was a problem hiding this comment.
Suggested change
| # Get required configuration — skip prompts if already set (generated/unattended mode) |
Comment on lines
+31
to
+39
| if [[ -z "${var_forgejo_runner_token:-}" ]]; then | ||
| read -r -p "${TAB3}Forgejo Runner Token: " var_forgejo_runner_token | ||
| fi | ||
|
|
||
| if [[ -z "${var_forgejo_runner_token:-}" ]]; then | ||
| msg_error "No runner registration token provided. Cannot continue." | ||
| exit 1 | ||
| fi | ||
|
|
Member
There was a problem hiding this comment.
possibly something like this;
Suggested change
| if [[ -z "${var_forgejo_runner_token:-}" ]]; then | |
| read -r -p "${TAB3}Forgejo Runner Token: " var_forgejo_runner_token | |
| fi | |
| if [[ -z "${var_forgejo_runner_token:-}" ]]; then | |
| msg_error "No runner registration token provided. Cannot continue." | |
| exit 1 | |
| fi | |
| while [[ -z "${var_forgejo_runner_token:-}" ]]; do | |
| read -r -p "${TAB3}Forgejo Runner Token: " var_forgejo_runner_token | |
| [[ -n "${var_forgejo_runner_token:-}" ]] || { | |
| msg_error "No runner registration token provided. Cannot continue." | |
| exit 1 | |
| } | |
| done | |
| msg_info "Generating Forgejo Runner Configuration" | ||
| mkdir -p /etc/forgejo-runner | ||
| CONFIG_FILE="/etc/forgejo-runner/config.yaml" | ||
| forgejo-runner generate-config > $CONFIG_FILE |
Member
There was a problem hiding this comment.
I don't think this extra var is worth it.
Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com>
asylumexp
reviewed
Jun 25, 2026
| var_disk="${var_disk:-8}" | ||
| var_os="${var_os:-debian}" | ||
| var_version="${var_version:-13}" | ||
| var_arm64="${var_arm64:-no}" |
Member
There was a problem hiding this comment.
Suggested change
| var_arm64="${var_arm64:-no}" | |
| var_arm64="${var_arm64:-yes}" |
| msg_ok "Stopped Services" | ||
|
|
||
| msg_info "Updating Forgejo Runner to v${RELEASE}" | ||
| curl -fsSL "https://code.forgejo.org/forgejo/runner/releases/download/v${RELEASE}/forgejo-runner-${RELEASE}-linux-amd64" -o /usr/local/bin/forgejo-runner |
Member
There was a problem hiding this comment.
Suggested change
| curl -fsSL "https://code.forgejo.org/forgejo/runner/releases/download/v${RELEASE}/forgejo-runner-${RELEASE}-linux-amd64" -o /usr/local/bin/forgejo-runner | |
| curl -fsSL "https://code.forgejo.org/forgejo/runner/releases/download/v${RELEASE}/forgejo-runner-${RELEASE}-linux-$(arch_resolve)" -o /usr/local/bin/forgejo-runner |
|
|
||
| msg_info "Installing Forgejo Runner" | ||
| RUNNER_VERSION=$(curl -fsSL https://data.forgejo.org/api/v1/repos/forgejo/runner/releases/latest | jq -r .name | sed 's/^v//') | ||
| curl -fsSL "https://code.forgejo.org/forgejo/runner/releases/download/v${RUNNER_VERSION}/forgejo-runner-${RUNNER_VERSION}-linux-amd64" -o /usr/local/bin/forgejo-runner |
Member
There was a problem hiding this comment.
Suggested change
| curl -fsSL "https://code.forgejo.org/forgejo/runner/releases/download/v${RUNNER_VERSION}/forgejo-runner-${RUNNER_VERSION}-linux-amd64" -o /usr/local/bin/forgejo-runner | |
| curl -fsSL "https://code.forgejo.org/forgejo/runner/releases/download/v${RUNNER_VERSION}/forgejo-runner-${RUNNER_VERSION}-linux-$(arch_resolve)" -o /usr/local/bin/forgejo-runner |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Name of the Script
forgejo-runner
Script Type
CT (LXC Container)
📋 Script Details
forgejo-runner
Automated migration from ProxmoxVED (community-scripts/ProxmoxVED#1576).