Skip to content

Gitea Runner #2308

Open
Open

Description

@jellyhuck

Name of the Script

Gitea-Runner

Script Type

CT (LXC Container)

Does this script support arm64?

arm64 supported

📋 Script Details

Add a script for Gitea Runner (repo: https://gitea.com/gitea/runner/releases).

Activity

  1. github-actions commented on Sep 29, 2026

    @github-actions
    Contributor

    The Gitea Runner script is ready for testing:

    bash -c "$(curl -fsSL https://github.com/community-scripts/ProxmoxVED/raw/main/ct/gitea-runner.sh)"
    

    Supports both Debian 13 and Alpine 3.24. The installer prompts for the OS or accepts var_os=alpine / var_os=debian.
    To register the runner, obtain a registration token in Gitea under Site Administration > Actions > Runners, then run: gitea-runner -c /etc/gitea-runner/config.yaml register --instance <URL> --token <TOKEN>.
    After registering, start the runner daemon service with systemctl start gitea-runner (Debian) or rc-service gitea-runner start (Alpine).
    Docker is installed and enabled by default for containerized workflow execution. Ensure nested virtualization is enabled on the LXC.

    Note: This is not in the official repo yet—it's just a dev version! After merging into ProxmoxVE, it will need to be recreated.

    Discord testing thread: https://discord.com/channels/1302816934508630047/1554452003214852158

  2. fabianschmeltzer commented on Oct 28, 2026

    @fabianschmeltzer

    Title: Gitea Runner fails to start: cache.dir unset and $HOME not defined in systemd service

    Installation

    Installed using the [Gitea Runner Community Script](https://community-scripts.org/scripts/gitea-runner).
    Installed runner version: v5.2.4.

    Problem

    The runner remains offline in Gitea. The installed systemd service exits with status 1/FAILURE and repeatedly restarts.

    Error log

    Error: invalid configuration: cache.dir is unset and the user home directory could not be determined: $HOME is not defined
    gitea-runner.service: Main process exited, code=exited, status=1/FAILURE
    gitea-runner.service: Failed with result 'exit-code'.
    

    Relevant service configuration

    File: /etc/systemd/system/gitea-runner.service

    [Service]
    Type=simple
    ExecStart=/usr/local/bin/gitea-runner daemon --config /etc/gitea-runner/config.yaml
    WorkingDirectory=/var/lib/gitea-runner
    Restart=on-failure
    RestartSec=5s
    TimeoutStopSec=3h

    The installed unit specifies neither User= nor Environment=HOME=.... Setting WorkingDirectory= alone does not provide $HOME. With cache.dir unset, the runner fails during configuration validation.

    Expected behavior

    The installed service should provide the environment or explicit cache configuration required for the runner to start.

    Confirmed workaround

    Created /etc/systemd/system/gitea-runner.service.d/home.conf:

    [Service]
    Environment="HOME=/var/lib/gitea-runner"

    Then applied the change:

    systemctl daemon-reload
    systemctl restart gitea-runner

    The service subsequently remained active (running), logged declare successfully, and immediately picked up a workflow job.

    Suggested fix

    Ensure the installer configures a suitable HOME for the service or explicitly sets a writable cache.dir.

  3. MickLesk commented on Oct 28, 2026

    @MickLesk
    Member

    Fixed in #3a85b87

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions