Compare commits
29
Commits
0f0401726a
..
v1.0.8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d6da1cac2 | ||
|
|
596ff517b0 | ||
|
|
4afdb1f90d | ||
|
|
6cacaf221c
|
||
|
|
434cf16ceb | ||
|
|
86a7234a15 | ||
|
|
60444a7903 | ||
|
|
6d928cc87a | ||
|
|
a704723a89 | ||
|
|
d016ea2cf4 | ||
|
|
60719af7b5 | ||
|
|
4338511c4f | ||
|
|
3c08727072 | ||
|
|
8c488270d6 | ||
|
|
808ca2f088
|
||
|
|
5ff5e34919 | ||
|
|
a7f9769a82
|
||
|
|
24f61b6217 | ||
|
|
110bbb2503 | ||
|
|
8781dbd9c5 | ||
|
|
b74abe36be | ||
|
|
1d87072e5c | ||
|
|
1c571f22ff | ||
|
|
6264a80ce0 | ||
|
|
4f0c13f53e | ||
|
|
330b4bc302 | ||
|
|
4ac07da223
|
||
|
|
dd58727d2d | ||
|
|
9031883995 |
No files matched your search
@@ -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 }}
|
||||||
|
|||||||
@@ -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}"
|
||||||
+47
-3
@@ -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
|
||||||
@@ -17,12 +33,40 @@ and this project adheres to [Semantic Versioning 2.0.0](https://semver.org/spec/
|
|||||||
- Go installs no longer fail when a newer patch is released: the checksum came
|
- Go installs no longer fail when a newer patch is released: the checksum came
|
||||||
from `go.dev/dl/?mode=json`, which lists only the current releases, so a pinned
|
from `go.dev/dl/?mode=json`, which lists only the current releases, so a pinned
|
||||||
`GO_VERSION` dropped out of it. The build now requests `include=all`.
|
`GO_VERSION` dropped out of it. The build now requests `include=all`.
|
||||||
|
- 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.
|
||||||
|
|
||||||
|
### 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.
|
- 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
|
||||||
|
still wait for a review. trivy and OSV-reported security fixes skip the
|
||||||
|
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
|
||||||
|
|
||||||
@@ -42,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
@@ -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
|
||||||
|
|||||||
@@ -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.
|
||||||
@@ -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
|
||||||
|
|
||||||
@@ -15,25 +8,27 @@ ARG TARGETARCH
|
|||||||
ARG BASE_IMAGE_TAG
|
ARG BASE_IMAGE_TAG
|
||||||
|
|
||||||
# renovate: datasource=node-version depName=node
|
# renovate: datasource=node-version depName=node
|
||||||
ARG NODE_VERSION=26.13.0
|
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.18.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
|
||||||
ARG YQ_VERSION=v4.54.1
|
ARG YQ_VERSION=v4.54.3
|
||||||
# renovate: datasource=github-releases depName=gitea/tea
|
# renovate: datasource=gitea-releases depName=gitea/tea
|
||||||
ARG TEA_VERSION=0.16.0
|
ARG TEA_VERSION=0.16.0
|
||||||
# renovate: datasource=golang-version depName=golang
|
# renovate: datasource=golang-version depName=golang
|
||||||
ARG GO_VERSION=1.27.3
|
ARG GO_VERSION=1.27.4
|
||||||
# renovate: datasource=github-releases depName=cli/cli
|
# renovate: datasource=github-releases depName=cli/cli
|
||||||
ARG GH_VERSION=2.103.3
|
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.1
|
ARG TRIVY_VERSION=0.77.0
|
||||||
# renovate: datasource=github-releases depName=goreleaser/nfpm
|
# renovate: datasource=github-releases depName=goreleaser/nfpm
|
||||||
ARG NFPM_VERSION=2.48.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
|
||||||
ARG CARGO_ZIGBUILD_VERSION=0.24.0
|
ARG CARGO_ZIGBUILD_VERSION=0.24.1
|
||||||
# Renovate has no datasource for zig; bump from https://ziglang.org/download/index.json by hand.
|
# Renovate has no datasource for zig; bump from https://ziglang.org/download/index.json by hand.
|
||||||
ARG ZIG_VERSION=0.17.0
|
ARG ZIG_VERSION=0.17.0
|
||||||
|
|
||||||
@@ -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 \
|
||||||
|
|||||||
@@ -2,12 +2,35 @@
|
|||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
"extends": ["config:recommended", "customManagers:dockerfileVersions"],
|
"extends": ["config:recommended", "customManagers:dockerfileVersions"],
|
||||||
"minimumReleaseAge": "2 days",
|
"minimumReleaseAge": "2 days",
|
||||||
|
"osvVulnerabilityAlerts": true,
|
||||||
|
"vulnerabilityAlerts": {
|
||||||
|
"automerge": true,
|
||||||
|
"minimumReleaseAge": null
|
||||||
|
},
|
||||||
"packageRules": [
|
"packageRules": [
|
||||||
{
|
{
|
||||||
|
"description": "all runner tool pins share one PR",
|
||||||
"matchManagers": ["dockerfile", "custom.regex"],
|
"matchManagers": ["dockerfile", "custom.regex"],
|
||||||
"groupName": "runner tool versions"
|
"groupName": "runner tool versions"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"description": "minor and patch updates merge once the branch is green and the release is 2 days old",
|
||||||
|
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
|
||||||
|
"automerge": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "major and breaking updates wait for a human",
|
||||||
|
"matchIsBreaking": true,
|
||||||
|
"automerge": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "trivy publishes scanner fixes; take them without the release-age wait",
|
||||||
|
"matchPackageNames": ["aquasecurity/trivy"],
|
||||||
|
"minimumReleaseAge": "0 days",
|
||||||
|
"automerge": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "node majors stay off",
|
||||||
"matchDepNames": ["node", "node-version"],
|
"matchDepNames": ["node", "node-version"],
|
||||||
"matchUpdateTypes": ["major"],
|
"matchUpdateTypes": ["major"],
|
||||||
"enabled": false
|
"enabled": false
|
||||||
|
|||||||
Reference in new issue
Block a user