mirror of
https://github.com/docker/cli.git
synced 2026-01-16 20:22:36 +03:00
Implement build cache based on history array
Based on work by KJ Tsanaktsidis Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> Signed-off-by: KJ Tsanaktsidis <kjtsanaktsidis@gmail.com>
This commit is contained in:
committed by
Tonis Tiigi
parent
59e38197ff
commit
9f20fabc69
@@ -110,6 +110,13 @@ func imageBuildOptionsToQuery(options types.ImageBuildOptions) (url.Values, erro
|
||||
return query, err
|
||||
}
|
||||
query.Set("labels", string(labelsJSON))
|
||||
|
||||
cacheFromJSON, err := json.Marshal(options.CacheFrom)
|
||||
if err != nil {
|
||||
return query, err
|
||||
}
|
||||
query.Set("cachefrom", string(cacheFromJSON))
|
||||
|
||||
return query, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user