From 075fbbf3d585ab3c56febbc73a8ccef7a5b2d9e6 Mon Sep 17 00:00:00 2001 From: Sam Alba Date: Thu, 15 Apr 2021 11:26:01 -0700 Subject: [PATCH] pipeline: forward the no-cache option to the dockerbuild frontend Signed-off-by: Sam Alba --- dagger/pipeline.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dagger/pipeline.go b/dagger/pipeline.go index 7cddcfd0..271dbb5d 100644 --- a/dagger/pipeline.go +++ b/dagger/pipeline.go @@ -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,