Specify cache key to differentiate cache layers
This commit is contained in:
parent
eb7194a165
commit
f7ba67ea25
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue