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:
parent
16c43bb973
commit
e868a5a765
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue