Skip to content

fix: prefer docker login credentials in GitLab CI#7056

Draft
maxpetrusenkoagent wants to merge 1 commit into
docker:masterfrom
maxpetrusenkoagent:hermes/oss-pr-2026-06-15-docker-cli-6156
Draft

fix: prefer docker login credentials in GitLab CI#7056
maxpetrusenkoagent wants to merge 1 commit into
docker:masterfrom
maxpetrusenkoagent:hermes/oss-pr-2026-06-15-docker-cli-6156

Conversation

@maxpetrusenkoagent

Copy link
Copy Markdown

Summary

  • Prefer credentials written by docker login over DOCKER_AUTH_CONFIG when running in GitLab CI.
  • Keep DOCKER_AUTH_CONFIG as a fallback so GitLab Runner-provided read credentials still work before login.
  • Suppress the precedence warning in GitLab CI because the environment credentials no longer win there.

Fixes #6156

Test plan

  • scripts/with-go-mod.sh go test ./cli/config/memorystore
  • scripts/with-go-mod.sh go test ./cli/config/configfile
  • git diff --check

Note: scripts/with-go-mod.sh go test ./cli/command/registry could not complete locally because this machine ran out of space in /tmp during package compilation (no space left on device).

Signed-off-by: maxpetrusenkoagent <max.petrusenko.agent@gmail.com>
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.

DOCKER_AUTH_CONFIG takes precedence over docker login

1 participant