Skip to content

Commit 1c98f09

Browse files
authored
Merge pull request #49 from duanhongyi/patch-1
fix(buildpack): use Procfile when BUILDPACK_URL is set
2 parents 6668920 + 366c488 commit 1c98f09

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)