Skip to content

Commit

Permalink
Merge pull request #49 from duanhongyi/patch-1
Browse files Browse the repository at this point in the history
fix(buildpack): use Procfile when BUILDPACK_URL is set
  • Loading branch information
Cryptophobia committed Jul 28, 2019
2 parents 6668920 + 366c488 commit 1c98f09
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/gitreceive/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,12 @@ func build(
return fmt.Errorf("running %s (%s)", strings.Join(tarCmd.Args, " "), err)
}

bType := getBuildTypeForDir(tmpDir)
var bType buildType
if buildPackURL != "" {
bType = buildTypeProcfile
} else {
bType = getBuildTypeForDir(tmpDir)
}
usingDockerfile := bType == buildTypeDockerfile

appTgzdata, err := ioutil.ReadFile(absAppTgz)
Expand Down

0 comments on commit 1c98f09

Please sign in to comment.