[PR #17] [MERGED] fix: authenticate to Docker Hub before QEMU setup to avoid rate limits #23
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
webgrip/workflows#23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/webgrip/workflows/pull/17
Author: @Ryangr0
Created: 5/30/2026
Status: ✅ Merged
Merged: 5/30/2026
Merged by: @Ryangr0
Base:
main← Head:fix/docker-hub-rate-limit📝 Commits (2)
736b47ffix: authenticate to Docker Hub before QEMU setup to avoid rate limits11c1d29fix: use DOCKER_USERNAME and DOCKER_TOKEN for Docker Hub auth📊 Changes
2 files changed (+16 additions, -0 deletions)
View changed files
📝
.github/composite-actions/docker-build-push-ghcr/action.yml(+8 -0)📝
.github/workflows/docker-build-and-push-ghcr.yml(+8 -0)📄 Description
Problem
The
Distribute / Docker Build and Push (GHCR)job fails on ARC runners with:This happens because
docker/setup-qemu-action@v3pullsdocker.io/tonistiigi/binfmt:latestbefore any registry login occurs. On shared-IP runner sets the anonymous Docker Hub rate limit is quickly exhausted.Example failure: https://github.com/webgrip/infrastructure/actions/runs/26684531278/job/78650402964
Fix
Composite action – adds a conditional
docker/login-action@v3step for Docker Hub before the QEMU and buildx setup steps. The step is skipped when credentials are absent (fully backward compatible).Reusable workflow – declares
DOCKER_USERNAMEandDOCKER_TOKENas optional secrets and forwards them as env vars to the composite action.Required follow-up
After merging, add the following organization secrets (or repository secrets on each repo that calls this workflow):
DOCKER_USERNAMEDOCKER_TOKENCallers that already use
secrets: inheritwill pick these up automatically.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.