Skip to content

Commit b890847

Browse files
committed
fix(buildpack): use procfile when BUILDPACK_URL is set
1 parent dbf0fb8 commit b890847

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

pkg/gitreceive/build.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,13 @@ func build(
142142
return fmt.Errorf("running %s (%s)", strings.Join(tarCmd.Args, " "), err)
143143
}
144144

145-
bType := getBuildTypeForDir(tmpDir)
145+
var bType buildType
146+
if buildPackURL != "" {
147+
bType = buildTypeProcfile
148+
} else {
149+
bType = getBuildTypeForDir(tmpDir)
150+
}
151+
146152
usingDockerfile := bType == buildTypeDockerfile
147153

148154
appTgzdata, err := ioutil.ReadFile(absAppTgz)

0 commit comments

Comments
 (0)