From 710e84586bacf69576ddc5ee6feec50b102d1a8a Mon Sep 17 00:00:00 2001 From: Jon Edvald Date: Tue, 9 Jul 2019 10:12:16 +0200 Subject: [PATCH] fix(k8s): build --force would error with cluster-docker and no Dockerfile --- garden-service/src/plugins/kubernetes/container/build.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/garden-service/src/plugins/kubernetes/container/build.ts b/garden-service/src/plugins/kubernetes/container/build.ts index c83f73a2c8..2cea14997f 100644 --- a/garden-service/src/plugins/kubernetes/container/build.ts +++ b/garden-service/src/plugins/kubernetes/container/build.ts @@ -118,6 +118,10 @@ const remoteBuild: BuildHandler = async (params) => { const { ctx, module, log } = params const provider = ctx.provider + if (!(await containerHelpers.hasDockerfile(module))) { + return {} + } + // Sync the build context to the remote sync service // -> Get a tunnel to the service log.setState("Syncing sources to cluster...")