feat: runner images for Ubuntu 24.04, 26.04 and 26.10
release / meta (push) Successful in 1s
release / publish (26.04, ubuntu-26.04) (push) Canceled after 1m59s
release / publish (26.10, ubuntu-26.10,ubuntu-latest) (push) Canceled after 2m5s
release / publish (24.04, ubuntu-24.04) (push) Canceled after 2m5s

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:55:55 +03:00
commit 2f4a68602b
11 files changed
+885

No files matched your search

+67
View File
@@ -0,0 +1,67 @@
name: build
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# Builds, scans and smoke tests the images without publishing anything.
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 120
strategy:
fail-fast: false
matrix:
base: ["26.10", "26.04", "24.04"]
env:
IMAGE: runner-images-test:${{ github.run_id }}-${{ matrix.base }}
TRIVY: ghcr.io/aquasecurity/trivy:0.76.1
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Build ${{ matrix.base }} amd64
uses: docker/build-push-action@v7
with:
context: .
file: dockerfiles/ubuntu.dockerfile
platforms: linux/amd64
pull: true
push: false
load: true
build-args: |
BASE_IMAGE_TAG=${{ matrix.base }}
tags: ${{ env.IMAGE }}
- name: Smoke test ${{ matrix.base }}
run: docker run --rm -i "${IMAGE}" bash -s -- ${{ matrix.base }} < tests/default.sh
- name: Export the image for scanning
run: docker save "${IMAGE}" -o /tmp/image.tar
- name: Scan ${{ matrix.base }} for CRITICAL vulnerabilities
run: |
docker run --rm -v /tmp:/scan "${TRIVY}" image --input /scan/image.tar \
--quiet --scanners vuln --severity CRITICAL --ignore-unfixed --exit-code 1 --no-progress
- name: Report HIGH vulnerabilities for ${{ matrix.base }}
if: always()
run: |
docker run --rm -v /tmp:/scan "${TRIVY}" image --input /scan/image.tar \
--quiet --scanners vuln --severity HIGH --ignore-unfixed --exit-code 1 --no-progress \
--format table || echo "HIGH findings present; not blocking the pull request"
- name: Remove test image
if: always()
run: docker image rm -f "${IMAGE}"