mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-09-30 20:32:59 +02:00
Specify cache key to differentiate cache layers
This commit is contained in:
Vendored
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user