renovate Bot 1c571f22ff
renovate/stability-days Updates have met minimum release age requirement
build / build (24.04) (pull_request) Successful in 3m11s
build / build (26.04) (pull_request) Successful in 3m15s
build / build (26.10) (pull_request) Successful in 3m0s
chore(deps): update dependency pnpm to v12.20.0
2026-11-15 00:24:16 +00:00

runner-images

Runner images for the Gitea Actions runners of our fristea instance at git.fristy.net.

The current set is Ubuntu-based (24.04, 26.04, 26.10). The Dockerfiles are written per base distribution, so a Debian or Alpine variant can be added later without changing the workflow or tag layout.

Why we build our own

The official Gitea runner images (docker.gitea.com/runner-images, built on buildpack-deps) cover the generic case. Our workflows kept downloading the same things on every single run:

Workflow step What it fetched Where from
actions/setup-node node 26.13.0 / 22 GitHub API
actions/setup-python python 3.15 GitHub API
pnpm/action-setup pnpm 12.16.1 npm registry
dtolnay/rust-toolchain rustup + toolchain static.rust-lang.org
release job zig, cargo-zigbuild, nfpm ziglang.org, GitHub
ci job trivy (install.sh) GitHub

The two rows marked GitHub API share one anonymous quota of ~60 requests per hour per IP. Several CI runs in the same hour exhausted it and jobs started dying inside Setup Node before anything was compiled. Baking the tools into the image removes the downloads entirely, so the quota no longer matters.

Differences from gitea/runner-images:

  • node 26 (the image tag we run) instead of node 24, plus pnpm and corepack
  • go, rust with the aarch64-unknown-linux-musl target, cargo-zigbuild and zig
  • gh, trivy and nfpm
  • ubuntu-26.04 and ubuntu-26.10 next to ubuntu-24.04
  • no slim or full flavour yet

What is inside

Tool Notes
node 26.13.0 installed into RUNNER_TOOL_CACHE and hard linked into /usr/local, so setup-node never downloads it
npm, pnpm, corepack global installs on top of node
python3 + pip + pipx yamllint comes from pipx
docker CLI + buildx + compose plugin jobs talk to the host daemon through the mounted socket
git + git-lfs, jq, yq, tea, shellcheck, sqlite3 the usual suspects
go, rust (rustup), cargo-zigbuild, zig cross builds for aarch64-unknown-linux-musl
gh, trivy, nfpm release tooling

Versions are pinned as ARGs with # renovate: annotations, so Renovate bumps them and the image stays reproducible.

Tags

Tag Base
ubuntu-latest Ubuntu 26.10
ubuntu-26.10 Ubuntu 26.10
ubuntu-26.04 Ubuntu 26.04 LTS
ubuntu-24.04 Ubuntu 24.04 LTS

Images are linux/amd64 only for now. The Dockerfile already handles arm64 (TARGETARCH), it is just not in the build matrix.

The repository itself is released with Semantic Versioning tags; changes land in CHANGELOG.md following Keep a Changelog. Image tags follow the Ubuntu release instead and are not versioned.

Using an image

Map a label to the image in the runner config (/config.yaml):

runner:
  labels:
    - "ubuntu-latest:docker://git.fristy.net/actions/runner-images:ubuntu-latest"
    - "ubuntu-26.04:docker://git.fristy.net/actions/runner-images:ubuntu-26.04"

Then runs-on: ubuntu-latest picks it up. Workflows that used to call actions/setup-node can drop it: node is already on PATH.

Building locally

docker build -f dockerfiles/ubuntu.dockerfile \
  --build-arg BASE_IMAGE_TAG=26.10 \
  -t runner-images:ubuntu-26.10 .

docker run --rm -i runner-images:ubuntu-26.10 bash -s -- 26.10 < tests/default.sh

build.yaml does exactly this for every tag in the matrix on pull requests; release.yaml publishes to git.fristy.net/actions/runner-images on main, on v* tags, monthly, or on demand.

S
Description
Runner images for our fristea actions runners.
Readme MIT
162 KiB
1 Stars 3 Watchers 0 Forks
Languages
Dockerfile 86%
Shell 14%