pipeline: forward the no-cache option to the dockerbuild frontend

Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
Sam Alba 2021-04-15 11:26:01 -07:00
parent 9ffe5c053c
commit 075fbbf3d5

View File

@ -722,6 +722,10 @@ func (p *Pipeline) DockerBuild(ctx context.Context, op *compiler.Value, st llb.S
return st, err
}
if p.s.noCache {
opts["no-cache"] = ""
}
req := bkgw.SolveRequest{
Frontend: "dockerfile.v0",
FrontendOpt: opts,