Specify cache key to differentiate cache layers

This commit is contained in:
Priya Wadhwa 2018-09-14 09:53:03 -07:00
parent eb7194a165
commit f7ba67ea25
1 changed files with 1 additions and 1 deletions

2
pkg/cache/cache.go vendored
View File

@ -64,7 +64,7 @@ func Destination(opts *config.KanikoOptions, cacheKey string) (string, error) {
if err != nil {
return "", errors.Wrap(err, "getting tag for destination")
}
return fmt.Sprintf("%s/cache", destRef.Context()), nil
return fmt.Sprintf("%s/cache:%s", destRef.Context(), cacheKey), nil
}
return fmt.Sprintf("%s:%s", cache, cacheKey), nil
}