Skip to content

Commit

Permalink
fix: custom image builder detection (#1395)
Browse files Browse the repository at this point in the history
Signed-off-by: Toma Puljak <toma.puljak@hotmail.com>
  • Loading branch information
Tpuljak authored Nov 29, 2024
1 parent 4da4af1 commit 128daa5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/build/detect/detect.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 128daa5

Please sign in to comment.