Skip to content

Forgejo-Runner#15046

Open
push-app-to-main[bot] wants to merge 2 commits into
mainfrom
add-script-forgejo-runner-1781158665
Open

Forgejo-Runner#15046
push-app-to-main[bot] wants to merge 2 commits into
mainfrom
add-script-forgejo-runner-1781158665

Conversation

@push-app-to-main

Copy link
Copy Markdown
Contributor

Name of the Script

forgejo-runner

Script Type

CT (LXC Container)

📋 Script Details

forgejo-runner


Automated migration from ProxmoxVED (community-scripts/ProxmoxVED#1576).

@push-app-to-main push-app-to-main Bot requested a review from a team as a code owner June 11, 2026 06:17
@github-actions github-actions Bot added the new script A change that adds a new script label Jun 11, 2026
Comment thread ct/forgejo-runner.sh
Comment on lines +22 to +23
# App-specific variables (not in build.func whitelist)
# Export so they survive lxc-attach into the container

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this documented in website?

Comment thread ct/forgejo-runner.sh Outdated
Comment thread ct/forgejo-runner.sh

var_unprivileged="${var_unprivileged:-1}"
var_nesting="${var_nesting:-1}"
var_keyctl="${var_keyctl:-1}"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this added?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dont ask me. You write more with the dev in VED ^^ ask him

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread ct/forgejo-runner.sh
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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

possibly use this safe curl download func?

Comment thread ct/forgejo-runner.sh
description

msg_ok "Completed successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instructions what is to do after installation

setting_up_container
network_check
update_os
setup_yq

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
setup_yq
setup_yq

update_os
setup_yq

# Get required configuration — skip prompts if already set (generated/unattended mode)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread install/forgejo-runner-install.sh
msg_info "Generating Forgejo Runner Configuration"
mkdir -p /etc/forgejo-runner
CONFIG_FILE="/etc/forgejo-runner/config.yaml"
forgejo-runner generate-config > $CONFIG_FILE

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this extra var is worth it.

Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com>

@asylumexp asylumexp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

arm64 supported

Comment thread ct/forgejo-runner.sh
var_disk="${var_disk:-8}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_arm64="${var_arm64:-no}"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var_arm64="${var_arm64:-no}"
var_arm64="${var_arm64:-yes}"

Comment thread ct/forgejo-runner.sh
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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new script A change that adds a new script

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants