image.py: Support KOKKURI_REGISTRY_USER and KOKKURI_REGISTRY_PASSWORD

If KOKKURI_REGISTRY_INTERNAL, KOKKURI_REGISTRY_USER, and
KOKKURI_REGISTRY_PASSWORD are set, set the auth configuration in
~/.docker/config.json accordingly. And make sure this auth info
takes precedence over any JWT auth coming from KOKKURI_JWT.

Likewise for KOKKURI_REGISTRY_CACHE_USER/KOKKURI_REGISTRY_CACHE_PASSWORD.

Bug: T384396


Related MRs:

Edited by Ahmon Dancy

Merge request reports

Loading