Selaa lähdekoodia

Always use the heroku procfile buildpack with the heroku builder

Mohammed Nafees 4 vuotta sitten
vanhempi
sitoutus
e011e3b126
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5 0
      cli/cmd/pack/pack.go

+ 5 - 0
cli/cmd/pack/pack.go

@@ -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)
 }