fix: upgrade base packages and npm to clear the image scan
apt-get upgrade keeps buildpack-deps from freezing linux-libc-dev at the version the base image shipped with; five CRITICAL kernel CVEs in that package alone failed the 24.04 publish. npm 11.21.3 replaces the undici 6.28.0 and brace-expansion 5.0.9 bundled with node 26.13.1, 12 HIGH findings. The npm tree is copied back into the tool cache because the in-place upgrade breaks its hardlink. Release pipeline: each main build now cuts the next patch from the newest v* tag, publishes v<semver>-ubuntu-<base> next to the moving ubuntu-<base> tags, and only tags the commit after every base has published, so a failed scan can no longer leave a half published version. The v0.0.0-dev.<sha> fallback is gone. Docs: README no longer pins tool versions that Renovate already tracks, and the image tags, versioning and commit conventions are written down.
This commit is contained in:
6 files changed
+131
-51
No files matched your search
@@ -15,9 +15,9 @@ 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 |
|
||||
| `actions/setup-node` | node 26.x | **GitHub API** |
|
||||
| `actions/setup-python` | python 3.x | **GitHub API** |
|
||||
| `pnpm/action-setup` | pnpm 12.x | 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 |
|
||||
@@ -25,7 +25,9 @@ things on every single run:
|
||||
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.
|
||||
removes the downloads entirely, so the quota no longer matters. The table names
|
||||
the major line only; the exact pin lives in the Dockerfile (see
|
||||
[Versions](#versions)).
|
||||
|
||||
Differences from `gitea/runner-images`:
|
||||
|
||||
@@ -39,7 +41,7 @@ Differences from `gitea/runner-images`:
|
||||
|
||||
| Tool | Notes |
|
||||
|---|---|
|
||||
| node 26.13.0 | installed into `RUNNER_TOOL_CACHE` and hard linked into `/usr/local`, so `setup-node` never downloads it |
|
||||
| node 26.x | 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 |
|
||||
@@ -47,25 +49,36 @@ Differences from `gitea/runner-images`:
|
||||
| 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.
|
||||
## Versions
|
||||
|
||||
Each tool is pinned to an exact version in a `# renovate:`-annotated `ARG` in
|
||||
[dockerfiles/ubuntu.dockerfile](dockerfiles/ubuntu.dockerfile). Renovate keeps
|
||||
those pins current, so this README names only the major line and does not go
|
||||
stale when a patch is released.
|
||||
|
||||
## Tags
|
||||
|
||||
| Tag | Base |
|
||||
| Tag | Meaning |
|
||||
|---|---|
|
||||
| `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 |
|
||||
| `ubuntu-latest` | newest base (Ubuntu 26.10) |
|
||||
| `ubuntu-26.10`, `ubuntu-26.04`, `ubuntu-24.04` | moving: newest build for that base |
|
||||
| `v1.0.1-ubuntu-26.10` | immutable: one release, one base |
|
||||
|
||||
Every successful run on `main` — including the monthly rebuild — cuts the next
|
||||
patch version from the newest `v*` tag, pushes `<version>-ubuntu-<base>` next to
|
||||
the moving tags, and only then tags the commit with `<version>`. Nothing is
|
||||
published under a version tag when a base fails its scan.
|
||||
|
||||
For a minor or major release, start the `release` workflow by hand with
|
||||
`version` set (for example `v1.1.0`); the same run publishes and tags it.
|
||||
|
||||
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.
|
||||
The repository follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html):
|
||||
dependency bumps are patch releases, new bases or tools are minor, and breaking
|
||||
changes are major. Changes land in [CHANGELOG.md](CHANGELOG.md) following
|
||||
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
||||
|
||||
## Using an image
|
||||
|
||||
@@ -93,4 +106,4 @@ docker run --rm -i runner-images:ubuntu-26.10 bash -s -- 26.10 < tests/default.s
|
||||
|
||||
`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.
|
||||
monthly, or on demand.
|
||||
Reference in new issue
Block a user