feat: runner images for Ubuntu 24.04, 26.04 and 26.10
release / meta (push) Successful in 1s
release / publish (24.04, ubuntu-24.04) (push) Failing after 3m21s
release / publish (26.10, ubuntu-26.10,ubuntu-latest) (push) Failing after 3m25s
release / publish (26.04, ubuntu-26.04) (push) Failing after 3m26s

Images built on buildpack-deps with every tool our workflows used to download on each run baked in: node 26 (installed into RUNNER_TOOL_CACHE so setup-node never calls the GitHub API), pnpm, corepack, python3, docker CLI with buildx and compose, git with lfs, jq, yq, tea, go, rust with the musl target, cargo-zigbuild, zig, gh, trivy and nfpm.

Adds the pull-request build with smoke tests, the release workflow that publishes ubuntu-24.04 / ubuntu-26.04 / ubuntu-26.10 plus the ubuntu-latest alias, Renovate annotations for every pinned version, and the docs: README, CHANGELOG (Keep a Changelog 1.1.0), SECURITY with the security@fristy.dev PGP key, CONTRIBUTING (Conventional Branch, SemVer), CODE_OF_CONDUCT and MIT LICENSE.
This commit is contained in:
fristy committed 2026-10-31 14:54:08 +03:00
commit c6d259a87f
11 files changed
+881

No files matched your search

+96
View File
@@ -0,0 +1,96 @@
# runner-images
Runner images for the Gitea Actions runners of our [fristea](https://git.fristy.net/fristy/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 `ARG`s 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](https://semver.org/spec/v2.0.0.html)
tags; changes land in [CHANGELOG.md](CHANGELOG.md) following
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/). 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`):
```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
```bash
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.