Containers images sometime comes from a private repository.
Sometime even with multiple login to download image from different registry.
Add container image private/private:latest
Typically, the command "podman login" is used to add credentials for private image repositories.
But I propose the implementation of auth.json file which will be generated each time there's a commit.
This gives the ability to specify up to per image credentials.
For example, with local registry from the documentation:
{
"auths": {
"my-registry.local/foo/bar/image": {
"auth": "…base64..."
},
"my-registry. Local/foo": {
"auth": "…base64..."
},
"my-registry. Local": {
"auth": "…base64..."
},
}
}And the configuration option would be
set container registry <name> username <username> set container registry <name> encrypted-password <encrypted-password> set container registry <name> plaintext-password <plaintext-password>