From d215b3e2d15373a551a87812840a66ec363ebb7b Mon Sep 17 00:00:00 2001 From: Laurence Isla Date: Wed, 18 Nov 2026 14:45:53 -0500 Subject: [PATCH] fix(nix): use -middleware PostgREST tag in cli-smoke-test The mirror workflow only publishes supabase/postgrest:v-middleware to ECR, so the plain v tag the smoke test wrote to rest-version could not be pulled. Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/mirror-postgrest.yml | 1 + nix/packages/cli-smoke-test.nix | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/mirror-postgrest.yml b/.github/workflows/mirror-postgrest.yml index 9963ae7727..b9137d2fb5 100644 --- a/.github/workflows/mirror-postgrest.yml +++ b/.github/workflows/mirror-postgrest.yml @@ -33,5 +33,6 @@ jobs: id-token: write uses: supabase/cli/.github/workflows/mirror-image.yml@d4fc0e5bbd65b3ade802e956d6df1cddab2e65a3 # v3.1.0 with: + # PostgREST is mirrored to ECR with a -middleware suffix (also updated in cli-smoke-test.nix for the "rest-version") image: supabase/postgrest:v${{ needs.version.outputs.postgrest_release }}-middleware secrets: inherit diff --git a/nix/packages/cli-smoke-test.nix b/nix/packages/cli-smoke-test.nix index e7fb336a27..8839242b6b 100644 --- a/nix/packages/cli-smoke-test.nix +++ b/nix/packages/cli-smoke-test.nix @@ -148,7 +148,8 @@ writeShellApplication { mkdir -p supabase/.temp # Set component versions - CLI reads these to determine which images to use - echo "v$REST_VERSION" > supabase/.temp/rest-version + # PostgREST is mirrored to ECR with a -middleware suffix (see mirror-postgrest.yml) + echo "v$REST_VERSION-middleware" > supabase/.temp/rest-version echo "v$AUTH_VERSION" > supabase/.temp/gotrue-version # Use major version so CLI constructs supabase/postgres:$PG_VERSION (our local build) echo "$PG_VERSION" > supabase/.temp/postgres-version