Skip to content

Commit

Permalink
fix: This PR is to fix an error when pushing to several private repos…
Browse files Browse the repository at this point in the history
…itories

Signed-off-by: Meeki1l <[email protected]>
  • Loading branch information
Meeki1l committed Feb 14, 2025
1 parent 16c43bb commit 4249ccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/executor/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit 4249ccd

Please sign in to comment.