Skip to content

Commit 4249ccd

Browse files
committed
fix: This PR is to fix an error when pushing to several private repositories
Signed-off-by: Meeki1l <[email protected]>
1 parent 16c43bb commit 4249ccd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: pkg/executor/push.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ func DoPush(image v1.Image, opts *config.KanikoOptions) error {
271271
destRef.Repository.Registry = newReg
272272
}
273273

274-
pushAuth, err := creds.GetKeychain().Resolve(destRef.Context().Registry)
274+
pushAuth, err := creds.GetKeychain().Resolve(destRef.Context())
275275
if err != nil {
276276
return errors.Wrap(err, "resolving pushAuth")
277277
}

0 commit comments

Comments
 (0)