|
|
@@ -4,6 +4,7 @@ import (
|
|
|
"context"
|
|
|
"fmt"
|
|
|
"path/filepath"
|
|
|
+ "strings"
|
|
|
|
|
|
"github.com/buildpacks/pack"
|
|
|
"github.com/porter-dev/porter/api/types"
|
|
|
@@ -46,5 +47,9 @@ func (a *Agent) Build(opts *docker.BuildOpts, buildConfig *types.BuildConfig) er
|
|
|
// FIXME: use all the config vars
|
|
|
}
|
|
|
|
|
|
+ if strings.HasPrefix(buildOpts.Builder, "heroku") {
|
|
|
+ buildOpts.Buildpacks = append(buildOpts.Buildpacks, "heroku/procfile")
|
|
|
+ }
|
|
|
+
|
|
|
return client.Build(context, buildOpts)
|
|
|
}
|