Containers: extend environment variables for passing registry credentials #37606
Labels
Area-Containers
Related to dotnet SDK containers functionality
Area-NetSDK
config-system-candidate
Issues that could be solved cleanly if the .NET CLI had a git-like configuration system
untriaged
Request triage from a team member
Is your feature request related to a problem?
Currently, the container tooling allows to pass a single username/password for registry authentication. This proposal is for enabling separate credentials for the pull and push registry.
Describe the solution you'd like
Use the existing variables
SDK_CONTAINER_REGISTRY_UNAME
,SDK_CONTAINER_REGISTRY_PWORD
for the registry the application image is pushed to.Add new
SDK_CONTAINER_PULL_REGISTRY_UNAME
,SDK_CONTAINER_PULL_REGISTRY_PWORD
for registry the base images are pulled from.For backwards compatibility, the pull registry environment variables default to the push registry environment variables when the push and pull registries are the same.
cc @baronfel @richlander
The text was updated successfully, but these errors were encountered: