Skip to content

Commit 366c488

Browse files
authored
fix(buildpack): use Procfile when BUILDPACK_URL is set
Builder uses dockerfile by default when Procfile and Dockerfile coexist, even if BUILDPACK_URL has been set. I don't think that's reasonable, because the user sets the BUILDPACK_URL to indicate that the user wants to use the buildpack.
1 parent 6668920 commit 366c488

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

pkg/gitreceive/build.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,12 @@ 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+
}
146151
usingDockerfile := bType == buildTypeDockerfile
147152

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

0 commit comments

Comments
 (0)