From 8b037b2ba9c9f84eb13b8b66a8bb7a05da0e57ae Mon Sep 17 00:00:00 2001 From: Michael Kriese Date: Thu, 26 Nov 2026 14:25:33 +0100 Subject: [PATCH] feat: build noble instead of focal Co-Authored-By: Claude Opus 5.5 --- .github/workflows/build.yml | 5 ++++- Dockerfile | 4 ++-- README.md | 6 ++++-- builder.noble.json | 9 +++++++++ 4 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 builder.noble.json diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 81410d42..563f7bec 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -81,10 +81,11 @@ jobs: contents: write strategy: + fail-fast: false matrix: distro: - - focal - jammy + - noble arch: - name: x86_64 os: ubuntu-24.04 @@ -106,6 +107,8 @@ jobs: with: command: binary-builder dry-run: ${{github.ref != 'refs/heads/main'}} + # noble only gets new releases + config: ${{ matrix.distro == 'noble' && 'builder.noble.json' || 'builder.json' }} token: ${{ secrets.GITHUB_TOKEN }} success: diff --git a/Dockerfile b/Dockerfile index 7f4fab75..8dd18145 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,13 @@ #-------------------------------------- # Ubuntu flavor #-------------------------------------- -ARG DISTRO=focal +ARG DISTRO=jammy #-------------------------------------- # base images #-------------------------------------- -FROM ghcr.io/containerbase/ubuntu:20.04@sha256:8feb4d8ca5354def3d8fce243717141ce31e2c428701f6682bd2fafe15388214 AS build-focal FROM ghcr.io/containerbase/ubuntu:22.04@sha256:b000e69a50ff940390233025e7a337fb8469b509e2334fa4d018ac30f3e18cdb AS build-jammy +FROM ghcr.io/containerbase/ubuntu:24.04@sha256:fe81560990fae86dc4743202b2cb4d3df98d0bcf949173cecef15ce1127ef852 AS build-noble #-------------------------------------- diff --git a/README.md b/README.md index 1bd19e62..6016f76c 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ CI runs jactionlint and zizmor through mise in the `lint` job, and the commit ho Build the image ```bash -docker build -t builder --build-arg APT_PROXY=http://apt-proxy:3142 --build-arg DISTRO=focal . +docker build -t builder --build-arg APT_PROXY=http://apt-proxy:3142 --build-arg DISTRO=jammy . ``` Test the image @@ -36,6 +36,8 @@ Optional environment variables | Name | Description | Default | | ----------- | ------------------------------------------------------------ | --------- | -| `DISTRO` | Set an ubuntu base distro, `focal` and `jammy` are supported | `focal` | +| `DISTRO` | Set an ubuntu base distro, `jammy` and `noble` are supported | `jammy` | | `APT_PROXY` | Set an APT http proxy for installing build deps | `` | | `DEBUG` | Show verbose php build output | `` | + +Ubuntu 24.04 (`noble`) only gets versions released since it was added. diff --git a/builder.noble.json b/builder.noble.json new file mode 100644 index 00000000..7cba471c --- /dev/null +++ b/builder.noble.json @@ -0,0 +1,9 @@ +{ + "image": "python", + "depName": "python", + "datasource": "docker", + "versioning": "docker", + "startVersion": "3.15.2", + "ignoredVersions": [], + "reverse": true +}