Repository navigation
ci: pull test service images from GHCR instead of Docker Hub - #16842
Merged
Merged
Conversation
Intermittent CI failures in the start-services action were caused by Docker Hub registry timeouts (context deadline exceeded) when pulling test service images. Only Docker Hub images failed; GHCR and MCR images pulled reliably from GitHub-hosted runners. Mirror the 6 Docker Hub images to ghcr.io/payloadcms/* (pinned to explicit versions) and repoint test/docker-compose.yml at them, so the entire test stack pulls only from GHCR and MCR.
DanRibbens
approved these changes
Jun 2, 2026
Contributor
📦 esbuild Bundle Analysis for payloadThis analysis was generated by esbuild-bundle-analyzer. 🤖
Largest pathsThese visualization shows top 20 largest paths in the bundle.Meta file: packages/next/meta_index.json, Out file: esbuild/index.js
Meta file: packages/payload/meta_index.json, Out file: esbuild/index.js
Meta file: packages/payload/meta_shared.json, Out file: esbuild/exports/shared.js
Meta file: packages/richtext-lexical/meta_client.json, Out file: esbuild/exports/client_optimized/index.js
Meta file: packages/ui/meta_client.json, Out file: esbuild/exports/client_optimized/index.js
Meta file: packages/ui/meta_shared.json, Out file: esbuild/exports/shared_optimized/index.js
DetailsNext to the size is how much the size has increased or decreased compared with the base branch of this PR.
|
denolfe
added a commit
that referenced
this pull request
Jun 4, 2026
…6866) # Overview Removes two sources of intermittent `Start services` CI failures, both caused by external registries blocking or rate-limiting unauthenticated requests. ## Key Changes - **Pin the Supabase CLI version (`start-services` action)** - `supabase/setup-cli` resolved `version: latest` through an unauthenticated GitHub releases API call (60 requests/hour per IP), which exhausted on shared runners and failed with `Failed to resolve latest Supabase CLI release: rate limit exceeded`. Pinning to `2.104.0` makes `setup-cli` skip that lookup entirely. - **Pull the azurite image from GHCR instead of MCR (`test/docker-compose.yml`)** - `mcr.microsoft.com/azure-storage/azurite:latest` started returning `The request is blocked` from Microsoft Container Registry, failing the storage profile pull through all three retries. The image is now `ghcr.io/payloadcms/azurite:3.35.0`, mirrored to the same `payloadcms` GHCR namespace as the other six test-service images. ## Design Decisions - **Extends the existing GHCR mirroring pattern.** PR #16842 moved every Docker Hub test-service image to `ghcr.io/payloadcms/*`, leaving azurite on MCR as the lone external dependency. With MCR now blocking pulls, azurite joins the same namespace, so the storage stack pulls entirely from GHCR. - **Mirror is a manual prerequisite.** As with the other GHCR images, there is no mirror automation. The azurite copy was pushed registry-to-registry with `docker buildx imagetools create` before this change, preserving all platforms, as a public package so contributor-fork CI can pull it anonymously. - **Pinned versions over floating tags.** Both `2.104.0` and `3.35.0` replace `latest`, matching the repo's convention of explicit versions for reproducible CI. Bumps are deliberate.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
The
start-servicesaction intermittently fails when pulling test service images, with Docker Hub registry timeouts (Get "https://registry-1.docker.io/v2/": context deadline exceeded). In failing runs, only the Docker Hub images error while images already served from GHCR and Microsoft Container Registry pull normally on GitHub-hosted runners.This moves the remaining Docker Hub test-service images to the
payloadcmsGHCR namespace and repointstest/docker-compose.ymlat them, so the test stack no longer depends on Docker Hub.Key Changes
Mirror the six Docker Hub images to GHCR
ghcr.io/payloadcms/*as a public, multi-arch package, pinned to an explicit version. These were pushed once withdocker buildx imagetools create(registry-to-registry, preserving all platforms); there is no mirror automation.Repoint
test/docker-compose.ymlmongodb/mongodb-community-server:8.2-ubi9ghcr.io/payloadcms/mongodb-community-server:8.2.9-ubi9mongodb/mongodb-community-search:latestghcr.io/payloadcms/mongodb-community-search:1.67.1mongodb/mongodb-atlas-local:latestghcr.io/payloadcms/mongodb-atlas-local:8.2.4localstack/localstack:4.14.0ghcr.io/payloadcms/localstack:4.14.0fsouza/fake-gcs-serverghcr.io/payloadcms/fake-gcs-server:1.54.0redis:7-alpineghcr.io/payloadcms/redis:7.4.9-alpineDesign Decisions
postgis-vectorandvercel-blob-emulatorfromghcr.io/payloadcms/*, so this extends an existing pattern rather than introducing new infrastructure.GITHUB_TOKENis read-only and cannot read private org packages) can pull them anonymously.latest, untagged,7-alpine) are replaced with explicit versions for reproducible CI. A future version bump is a deliberate two-step change: push the new pinned tag to GHCR, then update the tag here. New tags inherit the existing public visibility.References / Links