diff --git a/pkg/build/detect/detect.go b/pkg/build/detect/detect.go index 095720c947..81e47ade94 100644 --- a/pkg/build/detect/detect.go +++ b/pkg/build/detect/detect.go @@ -20,7 +20,11 @@ var ( ) func DetectProjectBuilderType(buildConfig *buildconfig.BuildConfig, projectDir string, sshClient *ssh.Client) (BuilderType, error) { - if buildConfig != nil && buildConfig.Devcontainer != nil { + if buildConfig == nil { + return BuilderTypeImage, nil + } + + if buildConfig.Devcontainer != nil { return BuilderTypeDevcontainer, nil }