Skip to content

Commit

Permalink
fix(k8s): build --force would error with cluster-docker and no Docker…
Browse files Browse the repository at this point in the history
…file
  • Loading branch information
edvald committed Jul 9, 2019
1 parent 8c4f86e commit 710e845
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions garden-service/src/plugins/kubernetes/container/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ const remoteBuild: BuildHandler = async (params) => {
const { ctx, module, log } = params
const provider = <KubernetesProvider>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...")
Expand Down

0 comments on commit 710e845

Please sign in to comment.