From bdb1a1ced353a8b1ede9a1ccf61b98534d68e927 Mon Sep 17 00:00:00 2001 From: Devon Hudson Date: Thu, 26 Nov 2026 16:42:57 +0000 Subject: [PATCH] Build Synapse CI images from local intermediates Since the GitHub runners moved to Docker Engine 29+ (containerd image store), BuildKit resolves `FROM matrixdotorg/synapse:latest` to the image on Docker Hub instead of the one built in the previous step, so the Synapse job has been testing the latest Synapse release rather than the checked-out branch. Tag the intermediate images under `localhost/` and pass them via the Dockerfiles' `FROM` build arg, matching Synapse's own `scripts-dev/complement.sh` (element-hq/synapse#19475). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01FqDpJc3BsJKZHiyNovpN5o --- .github/workflows/ci.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9ba6fee8..0284ce31 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -111,10 +111,12 @@ jobs: # Build homeserver image # Build the base Synapse dockerfile and then build a Complement-specific image from that base. + # The intermediate images are tagged under `localhost/` and passed via `FROM` so that + # each build uses the local image rather than a same-named image from Docker Hub. - run: | - docker build -t matrixdotorg/synapse:latest -f docker/Dockerfile . - docker build -t matrixdotorg/synapse-workers:latest -f docker/Dockerfile-workers . - docker build -t homeserver -f docker/complement/Dockerfile docker/complement + docker build -t localhost/synapse -f docker/Dockerfile . + docker build -t localhost/synapse-workers --build-arg FROM=localhost/synapse -f docker/Dockerfile-workers . + docker build -t homeserver --build-arg FROM=localhost/synapse-workers -f docker/complement/Dockerfile docker/complement if: ${{ matrix.homeserver == 'Synapse' }} working-directory: homeserver env: