Skip to content

Commit

Permalink
Merge pull request #413 from priyawadhwa/auth
Browse files Browse the repository at this point in the history
Use remoteImage function when getting digest for cache
  • Loading branch information
priyawadhwa authored Oct 29, 2018
2 parents 4581529 + 9908eeb commit 632bedf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/image_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func cachedImage(opts *config.KanikoOptions, image string) (v1.Image, error) {
if d, ok := ref.(name.Digest); ok {
cacheKey = d.DigestStr()
} else {
img, err := remote.Image(ref)
img, err := remoteImage(image, opts)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 632bedf

Please sign in to comment.