Skip to content

ci: Log in to Docker Hub before building - #17

Merged
ruxwez merged 1 commit into
mainfrom
ci/docker-hub-login-builds
Oct 25, 2026
Merged

ruxwez merged 1 commit into
mainfrom
ci/docker-hub-login-builds

Conversation

@ruxwez

@ruxwez ruxwez commented Oct 25, 2026

Copy link
Copy Markdown
Owner

Summary

Build jobs pulled the postgres base image from Docker Hub anonymously, from the shared IPs of GitHub's runners. That counts against Docker Hub's anonymous pull limit, so builds could start failing with 429 Too Many Requests even when the code is fine.

The previous Dockerfile avoided this by pulling from mirror.gcr.io. The refactor in #16 dropped that.

The build job now logs in to Docker Hub before building, so pulls count against the account. The separate login before pushing is gone, because it's no longer needed.

Pull requests from forks get no secrets, so they skip the login and build anonymously, same as before.

Testing

  • actionlint passes.
  • This PR's own CI runs the build jobs with the login step enabled.

🤖 Generated with Claude Code

https://claude.ai/code/session_01QTN7At86i5TYDmozENSNv8

The base image was pulled anonymously from the runner's shared IP, which
can hit Docker Hub's anonymous pull limit and fail builds with 429. Log
in before the build whenever secrets are available (everything except
pull requests from forks).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QTN7At86i5TYDmozENSNv8
@ruxwez
ruxwez merged commit fee0ec2 into main Oct 25, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant