mirror of https://github.com/docker/cli.git
Merge pull request #26839 from tonistiigi/build-cache
Implement build cache based on history array
This commit is contained in:
commit
18f54cb62b
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue