Skip to content

Commit

Permalink
Merge pull request moby#26839 from tonistiigi/build-cache
Browse files Browse the repository at this point in the history
Implement build cache based on history array
  • Loading branch information
Arnaud Porterie authored Sep 26, 2016
2 parents 0da5e77 + 9f20fab commit 18f54cb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions image_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 18f54cb

Please sign in to comment.