fix: This PR is to fix an error when pushing to several private repositories

Signed-off-by: Meeki1l <meekill2001@gmail.com>
This commit is contained in:
Meeki1l 2025-02-14 18:25:58 +03:00
parent 16c43bb973
commit e868a5a765
No known key found for this signature in database
GPG Key ID: B1797AB40D06D833
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ func DoPush(image v1.Image, opts *config.KanikoOptions) error {
destRef.Repository.Registry = newReg
}
pushAuth, err := creds.GetKeychain().Resolve(destRef.Context().Registry)
pushAuth, err := creds.GetKeychain().Resolve(destRef.Context())
if err != nil {
return errors.Wrap(err, "resolving pushAuth")
}