Merge pull request #26839 from tonistiigi/build-cache

Implement build cache based on history array
This commit is contained in:
Arnaud Porterie 2016-09-26 17:31:49 +00:00 committed by GitHub
commit 18f54cb62b
1 changed files with 7 additions and 0 deletions

View File

@ -110,6 +110,13 @@ func imageBuildOptionsToQuery(options types.ImageBuildOptions) (url.Values, erro
return query, err return query, err
} }
query.Set("labels", string(labelsJSON)) 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 return query, nil
} }