19 Commits
Author SHA1 Message Date
fristy 1d6da1cac2 Merge pull request 'chore(deps): update dependency aquasecurity/trivy to v0.77.0' (#16) from renovate/runner-tool-versions into main
release / meta (push) Successful in 2s
release / publish (26.04, ubuntu-26.04) (push) Successful in 3m28s
release / publish (24.04, ubuntu-24.04) (push) Successful in 5m7s
release / publish (26.10, ubuntu-26.10,ubuntu-latest) (push) Successful in 5m35s
release / tag (push) Successful in 2s
Reviewed-on: #16
2026-12-01 14:37:14 +03:00
renovate Bot 596ff517b0 chore(deps): update dependency aquasecurity/trivy to v0.77.0
build / build (26.10) (pull_request) Successful in 3m41s
build / build (26.04) (pull_request) Successful in 3m41s
build / build (24.04) (pull_request) Successful in 3m41s
2026-12-01 11:33:23 +00:00
fristy 4afdb1f90d Merge pull request 'chore(deps): update dependency pnpm to v12.24.0' (#15) from renovate/runner-tool-versions into main
release / meta (push) Successful in 2s
release / publish (26.10, ubuntu-26.10,ubuntu-latest) (push) Successful in 3m39s
release / publish (24.04, ubuntu-24.04) (push) Successful in 3m39s
release / publish (26.04, ubuntu-26.04) (push) Successful in 3m39s
release / tag (push) Successful in 2s
Reviewed-on: #15
2026-12-01 13:43:23 +03:00
fristy 6cacaf221c fix(ci): survive expired github download urls
build / build (26.04) (pull_request) Successful in 3m36s
build / build (24.04) (pull_request) Successful in 3m39s
build / build (26.10) (pull_request) Successful in 3m44s
GitHub answers a release asset download with HTTP 618 (jwt:expired) once the signed URL has expired, and the build layer dies on it. Two runs in a row lost build (24.04) on gh_2.106.0_linux_amd64.tar.gz while the same file downloaded fine in a sibling job of the same run.

Wrap curl in /usr/local/bin with retries and a no-cache request header, which covers the Dockerfile downloads and installer scripts such as cargo-zigbuild-installer.sh. Pull request builds also read the buildcache-<base> registry cache that release.yaml writes on every main push, so a cache hit skips the downloads.

Signed-off-by: fristyxd <gpg@fristy.dev>
2026-12-01 13:36:29 +03:00
renovate Bot 434cf16ceb chore(deps): update dependency pnpm to v12.24.0
renovate/stability-days Updates have met minimum release age requirement
build / build (24.04) (pull_request) Failing after 1m27s
build / build (26.10) (pull_request) Successful in 3m6s
build / build (26.04) (pull_request) Successful in 3m22s
2026-12-01 00:23:35 +00:00
fristy 86a7234a15 Merge pull request 'chore(deps): update dependency cli/cli to v2.106.0' (#14) from renovate/runner-tool-versions into main
release / meta (push) Successful in 2s
release / publish (26.10, ubuntu-26.10,ubuntu-latest) (push) Successful in 3m13s
release / publish (24.04, ubuntu-24.04) (push) Successful in 3m20s
release / publish (26.04, ubuntu-26.04) (push) Successful in 3m25s
release / tag (push) Successful in 3s
Reviewed-on: #14
2026-11-28 02:53:56 +03:00
renovate Bot 60444a7903 chore(deps): update dependency cli/cli to v2.106.0
renovate/stability-days Updates have met minimum release age requirement
build / build (26.10) (pull_request) Successful in 3m37s
build / build (24.04) (pull_request) Successful in 3m45s
build / build (26.04) (pull_request) Successful in 3m51s
2026-11-27 23:45:58 +00:00
fristy 6d928cc87a Merge pull request 'chore(deps): update dependency pnpm to v12.23.0' (#13) from renovate/runner-tool-versions into main
release / meta (push) Successful in 2s
release / publish (26.04, ubuntu-26.04) (push) Successful in 9m38s
release / publish (26.10, ubuntu-26.10,ubuntu-latest) (push) Successful in 10m46s
release / publish (24.04, ubuntu-24.04) (push) Successful in 12m43s
release / tag (push) Successful in 3s
Reviewed-on: #13
2026-11-24 17:36:08 +03:00
renovate Bot a704723a89 chore(deps): update dependency pnpm to v12.23.0
renovate/stability-days Updates have met minimum release age requirement
build / build (24.04) (pull_request) Successful in 9m48s
build / build (26.10) (pull_request) Successful in 8m11s
build / build (26.04) (pull_request) Successful in 14m47s
2026-11-24 14:21:16 +00:00
fristy d016ea2cf4 Merge pull request 'chore(deps): update dependency pnpm to v12.22.0' (#12) from renovate/runner-tool-versions into main
release / meta (push) Successful in 2s
release / publish (26.10, ubuntu-26.10,ubuntu-latest) (push) Successful in 3m12s
release / publish (24.04, ubuntu-24.04) (push) Successful in 3m18s
release / tag (push) Successful in 3s
release / publish (26.04, ubuntu-26.04) (push) Successful in 3m22s
Reviewed-on: #12
2026-11-23 18:01:57 +03:00
renovate Bot 60719af7b5 chore(deps): update dependency pnpm to v12.22.0
build / build (26.10) (pull_request) Successful in 3m5s
build / build (26.04) (pull_request) Successful in 3m12s
build / build (24.04) (pull_request) Successful in 3m16s
renovate/stability-days Updates have met minimum release age requirement
2026-11-23 14:23:16 +00:00
fristy 4338511c4f Merge pull request 'chore(deps): update dependency npm to v12' (#11) from renovate/major-runner-tool-versions into main
release / meta (push) Successful in 27s
release / publish (26.10, ubuntu-26.10,ubuntu-latest) (push) Successful in 3m9s
release / publish (24.04, ubuntu-24.04) (push) Successful in 3m15s
release / tag (push) Successful in 3s
release / publish (26.04, ubuntu-26.04) (push) Successful in 3m21s
Reviewed-on: #11
2026-11-21 12:40:03 +03:00
renovate Bot 3c08727072 chore(deps): update dependency npm to v12
renovate/stability-days Updates have met minimum release age requirement
build / build (26.10) (pull_request) Successful in 3m30s
build / build (26.04) (pull_request) Successful in 3m34s
build / build (24.04) (pull_request) Successful in 3m38s
2026-11-20 12:25:31 +00:00
fristyagent 8c488270d6 Merge pull request 'fix(ci): give the tag job a git identity' (#10) from fix/tag-identity into main
release / meta (push) Successful in 2s
release / publish (24.04, ubuntu-24.04) (push) Successful in 48s
release / publish (26.10, ubuntu-26.10,ubuntu-latest) (push) Successful in 50s
release / publish (26.04, ubuntu-26.04) (push) Successful in 51s
release / tag (push) Successful in 3s
2026-11-20 14:58:59 +03:00
fristy 808ca2f088 fix(ci): give the tag job a git identity
build / build (24.04) (pull_request) Successful in 3m11s
build / build (26.10) (pull_request) Successful in 3m10s
build / build (26.04) (pull_request) Successful in 3m12s
git tag -a needs user.name and user.email, which the runner container does not have, so the tag job failed after every image had already been published.
2026-11-20 14:53:50 +03:00
fristyagent 5ff5e34919 Merge pull request 'fix: upgrade base packages and npm to clear the image scan' (#9) from fix/image-scan into main
release / meta (push) Successful in 2s
release / publish (26.04, ubuntu-26.04) (push) Successful in 3m12s
release / publish (26.10, ubuntu-26.10,ubuntu-latest) (push) Successful in 3m18s
release / publish (24.04, ubuntu-24.04) (push) Successful in 3m33s
release / tag (push) Failing after 2s
2026-11-20 14:44:37 +03:00
fristy a7f9769a82 fix: upgrade base packages and npm to clear the image scan
build / build (26.04) (pull_request) Successful in 3m34s
build / build (26.10) (pull_request) Successful in 3m35s
build / build (24.04) (pull_request) Successful in 3m38s
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.
2026-11-20 14:35:30 +03:00
renovate Bot 24f61b6217 Merge pull request 'chore(deps): update dependency cli/cli to v2.105.0' (#8) from renovate/runner-tool-versions into main
release / meta (push) Successful in 2s
release / publish (24.04, ubuntu-24.04) (push) Failing after 3m21s
release / publish (26.10, ubuntu-26.10,ubuntu-latest) (push) Successful in 3m4s
release / publish (26.04, ubuntu-26.04) (push) Successful in 3m14s
2026-11-20 05:23:12 +03:00
renovate Bot 110bbb2503 chore(deps): update dependency cli/cli to v2.105.0
renovate/stability-days Updates have met minimum release age requirement
build / build (26.10) (pull_request) Successful in 3m39s
build / build (24.04) (pull_request) Successful in 3m45s
build / build (26.04) (pull_request) Successful in 3m47s
2026-11-20 01:22:18 +00:00
6 changed files with 164 additions and 53 deletions

No files matched your search

+9 -2
View File
@@ -11,8 +11,6 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true cancel-in-progress: true
# Builds, scans and smoke tests the images without publishing anything.
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -23,6 +21,8 @@ jobs:
base: ["26.10", "26.04", "24.04"] base: ["26.10", "26.04", "24.04"]
env: env:
IMAGE: runner-images-test:${{ github.run_id }}-${{ matrix.base }} IMAGE: runner-images-test:${{ github.run_id }}-${{ matrix.base }}
REGISTRY: git.fristy.net
CACHE: git.fristy.net/actions/runner-images:buildcache-${{ matrix.base }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v7 uses: actions/checkout@v7
@@ -30,6 +30,12 @@ jobs:
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4 uses: docker/setup-buildx-action@v4
- name: Log in to the registry (build cache)
run: |
token="${{ secrets.REGISTRY_TOKEN }}"
[ -n "$token" ] || { echo "REGISTRY_TOKEN secret is missing" >&2; exit 1; }
echo "$token" | docker login "${{ env.REGISTRY }}" -u "${{ secrets.REGISTRY_USERNAME || github.actor }}" --password-stdin
- name: Build ${{ matrix.base }} amd64 - name: Build ${{ matrix.base }} amd64
uses: docker/build-push-action@v7 uses: docker/build-push-action@v7
with: with:
@@ -39,6 +45,7 @@ jobs:
pull: true pull: true
push: false push: false
load: true load: true
cache-from: type=registry,ref=${{ env.CACHE }}
build-args: | build-args: |
BASE_IMAGE_TAG=${{ matrix.base }} BASE_IMAGE_TAG=${{ matrix.base }}
tags: ${{ env.IMAGE }} tags: ${{ env.IMAGE }}
+46 -7
View File
@@ -3,14 +3,16 @@ name: release
on: on:
push: push:
branches: [main] branches: [main]
tags: ["v*"]
schedule: schedule:
- cron: "0 3 1 * *" - cron: "0 3 1 * *"
workflow_dispatch: workflow_dispatch:
inputs:
version:
description: "Release to cut, e.g. v1.1.0. Empty means the next patch."
required: false
permissions: permissions:
contents: read contents: read
packages: write
concurrency: concurrency:
group: release group: release
@@ -20,6 +22,8 @@ env:
REGISTRY: git.fristy.net REGISTRY: git.fristy.net
IMAGE: git.fristy.net/actions/runner-images IMAGE: git.fristy.net/actions/runner-images
# Each run on main cuts a patch release and tags the commit afterwards. A tag
# push does not trigger this workflow, so the tag cannot loop back.
jobs: jobs:
meta: meta:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -27,15 +31,28 @@ jobs:
created: ${{ steps.meta.outputs.created }} created: ${{ steps.meta.outputs.created }}
version: ${{ steps.meta.outputs.version }} version: ${{ steps.meta.outputs.version }}
steps: steps:
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Get meta - name: Get meta
id: meta id: meta
run: | run: |
echo "created=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> "$GITHUB_OUTPUT" echo "created=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> "$GITHUB_OUTPUT"
if [ "${GITHUB_REF_TYPE}" = "tag" ]; then latest="$(git tag --list 'v*' --sort=-v:refname | head -n1)"
version="${GITHUB_REF_NAME}" if [ -z "${latest}" ]; then
next="v1.0.0"
else else
version="v0.0.0-dev.$(printf '%s' "${GITHUB_SHA}" | cut -c1-7)" next="v$(awk -F. '{print $1"."$2"."$3+1}' <<< "${latest#v}")"
fi fi
override='${{ github.event.inputs.version }}'
[ "${override}" = "null" ] && override=''
version="${override:-${next}}"
[[ "${version}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] || {
echo "invalid version '${version}', expected v<major>.<minor>.<patch>" >&2
exit 1
}
echo "version=${version}" >> "$GITHUB_OUTPUT" echo "version=${version}" >> "$GITHUB_OUTPUT"
publish: publish:
@@ -101,10 +118,32 @@ jobs:
- name: Push ${{ matrix.base }} - name: Push ${{ matrix.base }}
run: | run: |
set -euo pipefail set -euo pipefail
version="${{ needs.meta.outputs.version }}"
printf '%s\n' "${{ matrix.tags }}" | tr ',' '\n' | while read -r tag; do printf '%s\n' "${{ matrix.tags }}" | tr ',' '\n' | while read -r tag; do
[ -n "${tag}" ] || continue [ -n "${tag}" ] || continue
docker tag "${IMAGE}:ubuntu-${{ matrix.base }}" "${IMAGE}:${tag}" docker tag "${IMAGE}:ubuntu-${{ matrix.base }}" "${IMAGE}:${tag}"
docker push "${IMAGE}:${tag}" docker push "${IMAGE}:${tag}"
done done
docker tag "${IMAGE}:ubuntu-${{ matrix.base }}" "${IMAGE}:${{ needs.meta.outputs.version }}-${{ matrix.base }}" docker tag "${IMAGE}:ubuntu-${{ matrix.base }}" "${IMAGE}:${version}-ubuntu-${{ matrix.base }}"
docker push "${IMAGE}:${{ needs.meta.outputs.version }}-${{ matrix.base }}" docker push "${IMAGE}:${version}-ubuntu-${{ matrix.base }}"
tag:
needs: [meta, publish]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Tag the release
run: |
version="${{ needs.meta.outputs.version }}"
if git rev-parse -q --verify "refs/tags/${version}" > /dev/null; then
echo "${version} is already tagged"
exit 0
fi
git -c user.name="fristyagent" -c user.email="ai-agent@fristy.dev" tag -a "${version}" -m "${version}" "${GITHUB_SHA}"
git push origin "refs/tags/${version}"
+41 -4
View File
@@ -9,6 +9,22 @@ and this project adheres to [Semantic Versioning 2.0.0](https://semver.org/spec/
### Fixed ### Fixed
- Builds no longer fail when a GitHub release asset answers with HTTP 618
(`jwt:expired`). `curl` is wrapped in `/usr/local/bin` with
`--retry 5 --retry-all-errors` and a `Cache-Control: no-cache` request header,
so the Dockerfile's own downloads and installer scripts such as
`cargo-zigbuild-installer.sh` retry instead of killing the layer.
### Changed
- `build.yaml` reads the `buildcache-<base>` registry cache that `release.yaml`
writes on every `main` build, so a pull request reuses the tool layers instead
of downloading them again. The pull request still publishes nothing.
## [1.0.1] - 2026-11-20
### Fixed
- Renovate now sees the pinned tool `ARG`s. The `# renovate:` comments above - Renovate now sees the pinned tool `ARG`s. The `# renovate:` comments above
them are only read by the `customManagers:dockerfileVersions` preset, which them are only read by the `customManagers:dockerfileVersions` preset, which
`config:recommended` does not enable, so the Dockerfile manager alone listed `config:recommended` does not enable, so the Dockerfile manager alone listed
@@ -20,16 +36,37 @@ and this project adheres to [Semantic Versioning 2.0.0](https://semver.org/spec/
- tea is looked up through `gitea-releases`: `github.com/gitea/tea` does not - tea is looked up through `gitea-releases`: `github.com/gitea/tea` does not
exist, so every Renovate run reported a package lookup failure for it. exist, so every Renovate run reported a package lookup failure for it.
### Security
- The build runs `apt-get upgrade` before installing anything else, so the image
no longer inherits the base packages frozen into `buildpack-deps` at its
publish time. The 24.04 image was failing its CRITICAL scan on
`linux-libc-dev` for exactly that reason.
### Changed ### Changed
- Images carry an immutable `v<semver>-ubuntu-<base>` tag next to the moving
`ubuntu-<base>` tags. Each `main` build cuts the next patch version from the
newest `v*` tag and tags the commit once every base has published; minor and
major releases start the workflow by hand with `version` set. The
`v0.0.0-dev.<sha>` tags are gone.
- zig is no longer annotated for Renovate: no datasource publishes ziglang.org - zig is no longer annotated for Renovate: no datasource publishes ziglang.org
releases, so `ZIG_VERSION` is bumped by hand. releases, so `ZIG_VERSION` is bumped by hand.
- pnpm 12.16.1 to 12.18.0.
- nfpm 2.48.0 to 2.49.0.
- Renovate merges minor, patch, pin and digest updates on its own once the - Renovate merges minor, patch, pin and digest updates on its own once the
branch is green and the release is two days old; major and breaking updates branch is green and the release is two days old; major and breaking updates
still wait for a review. trivy and OSV-reported security fixes skip the still wait for a review. trivy and OSV-reported security fixes skip the
release-age wait. release-age wait.
- node 26.13.0 to 26.13.1.
- npm 11.20.0 to 11.21.3, now pinned and tracked by Renovate: the npm bundled
with node 26.13.1 shipped undici 6.28.0 and brace-expansion 5.0.9, which were
12 of the HIGH findings in the image scan.
- pnpm 12.16.1 to 12.21.0.
- yq v4.54.1 to v4.54.3.
- Go 1.27.3 to 1.27.4.
- gh 2.103.3 to 2.105.0.
- trivy 0.76.1 to 0.76.2.
- nfpm 2.48.0 to 2.49.0.
- cargo-zigbuild 0.24.0 to 0.24.1.
## [1.0.0] - 2026-10-31 ## [1.0.0] - 2026-10-31
@@ -49,5 +86,5 @@ and this project adheres to [Semantic Versioning 2.0.0](https://semver.org/spec/
- `build.yaml` (pull requests, no publishing) and `release.yaml` (publish on `main`, - `build.yaml` (pull requests, no publishing) and `release.yaml` (publish on `main`,
on `v*` tags, monthly, or on demand). on `v*` tags, monthly, or on demand).
[Unreleased]: https://git.fristy.net/actions/runner-images/compare/v1.0.0...main [1.0.1]: https://git.fristy.net/actions/runner-images/compare/v1.0.0...v1.0.1
[1.0.0]: https://git.fristy.net/actions/runner-images/releases/tag/v1.0.0 [1.0.0]: https://git.fristy.net/actions/runner-images/src/tag/v1.0.0
+20 -8
View File
@@ -30,8 +30,6 @@ explain the why.
the same pull request. the same pull request.
- **Architecture:** the build matrix is `linux/amd64`. The Dockerfile maps - **Architecture:** the build matrix is `linux/amd64`. The Dockerfile maps
`TARGETARCH` for `arm64` as well, so keep it working when you add downloads. `TARGETARCH` for `arm64` as well, so keep it working when you add downloads.
- **Commits:** short imperative subject, body explains the reason. Add
`Signed-off-by:` if you can (DCO-style, no CLA).
## Branch names ## Branch names
@@ -46,24 +44,38 @@ docs/<slug> README, CONTRIBUTING, SECURITY
No long-lived branches besides `main`; delete the branch after the merge. No long-lived branches besides `main`; delete the branch after the merge.
## Commits
We follow [Conventional Commits 1.0.0](https://www.conventionalcommits.org/en/v1.0.0/):
`type(optional scope): summary` in the imperative, the reason in the body.
```
feat: bake gh into the image
fix(dockerfile): keep the Go checksum lookup working
chore(deps): update runner tool versions
docs: explain the image tags
```
Add `Signed-off-by:` if you can (DCO-style, no CLA). A breaking change takes a
`!` after the type or a `BREAKING CHANGE:` footer, and that is a major release.
## Versioning ## Versioning
The repository follows [Semantic Versioning 2.0.0](https://semver.org/spec/v2.0.0.html) The repository follows [Semantic Versioning 2.0.0](https://semver.org/spec/v2.0.0.html)
for its own releases (`vMAJOR.MINOR.PATCH` git tags, published from `release.yaml`): for its own releases:
- **MAJOR** — a tag disappears, an image stops shipping a tool workflows depend on. - **MAJOR** — a tag disappears, an image stops shipping a tool workflows depend on.
- **MINOR** — a new base tag, a new tool or a new cache layout. - **MINOR** — a new base tag, a new tool or a new cache layout.
- **PATCH** — version bumps of the tools already inside, rebuilds for base updates. - **PATCH** — version bumps of the tools already inside, rebuilds for base updates.
The image tags themselves (`ubuntu-24.04`, `ubuntu-latest`, …) follow the Ubuntu Every run on `main` cuts the next patch: `release.yaml` publishes
release they are built on and are not versioned. `IMAGE_VERSION` records the `v<semver>-ubuntu-<base>` next to the moving `ubuntu-<base>` tags, then tags the
SemVer tag when the build comes from a `v*` tag, otherwise commit. Minor and major releases start that workflow by hand with `version` set.
`v0.0.0-dev.<sha>`. `IMAGE_VERSION` records the version the image was built as.
Changes are recorded in [CHANGELOG.md](CHANGELOG.md), which follows Changes are recorded in [CHANGELOG.md](CHANGELOG.md), which follows
[Keep a Changelog 1.1.0](https://keepachangelog.com/en/1.1.0/). [Keep a Changelog 1.1.0](https://keepachangelog.com/en/1.1.0/).
## Testing locally ## Testing locally
```bash ```bash
+30 -17
View File
@@ -15,9 +15,9 @@ things on every single run:
| Workflow step | What it fetched | Where from | | Workflow step | What it fetched | Where from |
|---|---|---| |---|---|---|
| `actions/setup-node` | node 26.13.0 / 22 | **GitHub API** | | `actions/setup-node` | node 26.x | **GitHub API** |
| `actions/setup-python` | python 3.15 | **GitHub API** | | `actions/setup-python` | python 3.x | **GitHub API** |
| `pnpm/action-setup` | pnpm 12.16.1 | npm registry | | `pnpm/action-setup` | pnpm 12.x | npm registry |
| `dtolnay/rust-toolchain` | rustup + toolchain | static.rust-lang.org | | `dtolnay/rust-toolchain` | rustup + toolchain | static.rust-lang.org |
| release job | zig, cargo-zigbuild, nfpm | ziglang.org, GitHub | | release job | zig, cargo-zigbuild, nfpm | ziglang.org, GitHub |
| ci job | trivy (install.sh) | 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 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 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 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`: Differences from `gitea/runner-images`:
@@ -39,7 +41,7 @@ Differences from `gitea/runner-images`:
| Tool | Notes | | 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 | | npm, pnpm, corepack | global installs on top of node |
| python3 + pip + pipx | `yamllint` comes from pipx | | python3 + pip + pipx | `yamllint` comes from pipx |
| docker CLI + buildx + compose plugin | jobs talk to the host daemon through the mounted socket | | 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` | | go, rust (rustup), cargo-zigbuild, zig | cross builds for `aarch64-unknown-linux-musl` |
| gh, trivy, nfpm | release tooling | | gh, trivy, nfpm | release tooling |
Versions are pinned as `ARG`s with `# renovate:` annotations, so Renovate bumps ## Versions
them and the image stays reproducible.
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 ## Tags
| Tag | Base | | Tag | Meaning |
|---|---| |---|---|
| `ubuntu-latest` | Ubuntu 26.10 | | `ubuntu-latest` | newest base (Ubuntu 26.10) |
| `ubuntu-26.10` | Ubuntu 26.10 | | `ubuntu-26.10`, `ubuntu-26.04`, `ubuntu-24.04` | moving: newest build for that base |
| `ubuntu-26.04` | Ubuntu 26.04 LTS | | `v1.0.1-ubuntu-26.10` | immutable: one release, one base |
| `ubuntu-24.04` | Ubuntu 24.04 LTS |
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` Images are `linux/amd64` only for now. The Dockerfile already handles `arm64`
(`TARGETARCH`), it is just not in the build matrix. (`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) The repository follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html):
tags; changes land in [CHANGELOG.md](CHANGELOG.md) following dependency bumps are patch releases, new bases or tools are minor, and breaking
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/). Image tags follow the changes are major. Changes land in [CHANGELOG.md](CHANGELOG.md) following
Ubuntu release instead and are not versioned. [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
## Using an image ## 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; `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`, `release.yaml` publishes to `git.fristy.net/actions/runner-images` on `main`,
on `v*` tags, monthly, or on demand. monthly, or on demand.
+18 -15
View File
@@ -1,11 +1,4 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
#
# Ubuntu runner image for our Gitea Actions runners.
#
# Every tool a workflow would otherwise download on each run is baked in:
# node, pnpm, corepack, python, docker CLI + buildx + compose, git, jq, yq, tea,
# go, rust (with the musl target and cargo-zigbuild), gh, trivy, nfpm and zig.
# Actions/setup-node finds node in RUNNER_TOOL_CACHE, so it never hits GitHub.
ARG BASE_IMAGE_TAG=26.10 ARG BASE_IMAGE_TAG=26.10
@@ -16,8 +9,10 @@ ARG BASE_IMAGE_TAG
# renovate: datasource=node-version depName=node # renovate: datasource=node-version depName=node
ARG NODE_VERSION=26.13.1 ARG NODE_VERSION=26.13.1
# renovate: datasource=npm depName=npm
ARG NPM_VERSION=12.2.3
# renovate: datasource=npm depName=pnpm # renovate: datasource=npm depName=pnpm
ARG PNPM_VERSION=12.21.0 ARG PNPM_VERSION=12.24.0
# renovate: datasource=npm depName=corepack # renovate: datasource=npm depName=corepack
ARG COREPACK_VERSION=0.36.0 ARG COREPACK_VERSION=0.36.0
# renovate: datasource=github-releases depName=mikefarah/yq # renovate: datasource=github-releases depName=mikefarah/yq
@@ -27,9 +22,9 @@ ARG TEA_VERSION=0.16.0
# renovate: datasource=golang-version depName=golang # renovate: datasource=golang-version depName=golang
ARG GO_VERSION=1.27.4 ARG GO_VERSION=1.27.4
# renovate: datasource=github-releases depName=cli/cli # renovate: datasource=github-releases depName=cli/cli
ARG GH_VERSION=2.104.0 ARG GH_VERSION=2.106.0
# renovate: datasource=github-releases depName=aquasecurity/trivy # renovate: datasource=github-releases depName=aquasecurity/trivy
ARG TRIVY_VERSION=0.76.2 ARG TRIVY_VERSION=0.77.0
# renovate: datasource=github-releases depName=goreleaser/nfpm # renovate: datasource=github-releases depName=goreleaser/nfpm
ARG NFPM_VERSION=2.49.0 ARG NFPM_VERSION=2.49.0
# renovate: datasource=github-releases depName=rust-cross/cargo-zigbuild # renovate: datasource=github-releases depName=rust-cross/cargo-zigbuild
@@ -54,6 +49,12 @@ ENV DEBIAN_FRONTEND=noninteractive \
SHELL ["/bin/bash", "-e", "-o", "pipefail", "-c"] SHELL ["/bin/bash", "-e", "-o", "pipefail", "-c"]
RUN printf '%s\n' \
'#!/bin/sh' \
'exec /usr/bin/curl --retry 5 --retry-all-errors --retry-delay 2 -H "Cache-Control: no-cache" "$@"' \
> /usr/local/bin/curl \
&& chmod 0755 /usr/local/bin/curl
RUN case "${TARGETARCH}" in \ RUN case "${TARGETARCH}" in \
amd64) arch=x86_64; goarch=amd64; node_arch=x64; gh_arch=amd64; trivy_arch=64bit; zig_arch=x86_64 ;; \ amd64) arch=x86_64; goarch=amd64; node_arch=x64; gh_arch=amd64; trivy_arch=64bit; zig_arch=x86_64 ;; \
arm64) arch=aarch64; goarch=arm64; node_arch=arm64; gh_arch=arm64; trivy_arch=ARM64; zig_arch=aarch64 ;; \ arm64) arch=aarch64; goarch=arm64; node_arch=arm64; gh_arch=arm64; trivy_arch=ARM64; zig_arch=aarch64 ;; \
@@ -66,7 +67,7 @@ RUN case "${TARGETARCH}" in \
&& echo "${trivy_arch}" > /tmp/trivy_arch \ && echo "${trivy_arch}" > /tmp/trivy_arch \
&& echo "${zig_arch}" > /tmp/zig_arch && echo "${zig_arch}" > /tmp/zig_arch
# Base packages. buildpack-deps already brings compilers, curl, git and the usual libraries. # buildpack-deps already brings compilers, curl and git; add only the gaps.
RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries \ RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries \
&& apt-get update \ && apt-get update \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends \
@@ -98,6 +99,7 @@ RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries \
xz-utils \ xz-utils \
zip \ zip \
zstd \ zstd \
&& apt-get upgrade -y \
&& . /etc/os-release \ && . /etc/os-release \
&& install -m 0755 -d /etc/apt/keyrings \ && install -m 0755 -d /etc/apt/keyrings \
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc \ && curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc \
@@ -114,8 +116,7 @@ RUN echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries \
&& chmod -R 777 /opt/pipx /opt/pipx_bin \ && chmod -R 777 /opt/pipx /opt/pipx_bin \
&& rm -rf ~/.cache && rm -rf ~/.cache
# Node goes into the tool cache for setup-node and is hard linked into /usr/local, # npm upgrades break the hardlink, so the tool-cache copy is replaced below.
# so a shared tool-cache volume cannot hide it.
RUN node_arch="$(cat /tmp/node_arch)" \ RUN node_arch="$(cat /tmp/node_arch)" \
&& cd /tmp \ && cd /tmp \
&& base_url="https://nodejs.org/dist/v${NODE_VERSION}" \ && base_url="https://nodejs.org/dist/v${NODE_VERSION}" \
@@ -131,8 +132,11 @@ RUN node_arch="$(cat /tmp/node_arch)" \
&& cp -al "${node_dir}/bin" "${node_dir}/include" "${node_dir}/lib" "${node_dir}/share" /usr/local/ \ && cp -al "${node_dir}/bin" "${node_dir}/include" "${node_dir}/lib" "${node_dir}/share" /usr/local/ \
&& rm -f "${tarball}" SHASUMS256.txt \ && rm -f "${tarball}" SHASUMS256.txt \
&& node --version \ && node --version \
&& npm install -g "pnpm@${PNPM_VERSION}" "corepack@${COREPACK_VERSION}" \ && npm install -g "npm@${NPM_VERSION}" "pnpm@${PNPM_VERSION}" "corepack@${COREPACK_VERSION}" \
&& rm -rf "${node_dir}/lib/node_modules/npm" \
&& cp -a /usr/local/lib/node_modules/npm "${node_dir}/lib/node_modules/npm" \
&& rm -rf ~/.npm \ && rm -rf ~/.npm \
&& npm --version \
&& pnpm --version \ && pnpm --version \
&& corepack --version && corepack --version
@@ -227,7 +231,6 @@ RUN arch="$(cat /tmp/arch)" \
&& cargo --version \ && cargo --version \
&& cargo zigbuild --help > /dev/null && cargo zigbuild --help > /dev/null
# Runner plumbing: work dir, ssh known hosts, tool cache permissions.
RUN mkdir -m 0777 -p /github /opt/hostedtoolcache \ RUN mkdir -m 0777 -p /github /opt/hostedtoolcache \
&& mkdir -m 0700 -p ~/.ssh \ && mkdir -m 0700 -p ~/.ssh \
&& ssh-keyscan -t rsa,ecdsa,ed25519 github.com gitea.com >> /etc/ssh/ssh_known_hosts \ && ssh-keyscan -t rsa,ecdsa,ed25519 github.com gitea.com >> /etc/ssh/ssh_known_hosts \