-
Notifications
You must be signed in to change notification settings - Fork 342
Description
Is your feature request related to a problem? Please describe.
While CUE supports DOCKER_CONFIG, creating the required directory structure and config.json file is often impractical in ephemeral environments like CI/CD pipelines.
Describe the solution you'd like
I would like CUE to support a DOCKER_AUTH_CONFIG environment variable. This variable should accept the raw JSON configuration string (the content usually found in config.json) directly.
If DOCKER_AUTH_CONFIG is present, CUE should parse it for registry credentials, removing the need to create a physical directory structure or file on the disk. This creates a much smoother experience in ephemeral environments like CI/CD.
Describe alternatives you've considered
Manual file generation in CI steps. Currently, we have to write shell scripts to shim the environment. For example
mkdir -p /tmp/docker-config
echo $DOCKER_CONFIG_JSON_CONTENT > /tmp/docker-config/config.json
export DOCKER_CONFIG=/tmp/docker-config