diff --git a/cloudfoundry/managers/v3appdeployers/runbinder.go b/cloudfoundry/managers/v3appdeployers/runbinder.go index 1981de9a..670c6ac4 100644 --- a/cloudfoundry/managers/v3appdeployers/runbinder.go +++ b/cloudfoundry/managers/v3appdeployers/runbinder.go @@ -328,9 +328,17 @@ func (r RunBinder) Start(appDeploy AppDeploy) (resources.Application, resources. // Package not staged if len(droplets) == 0 { // Stage the package - build, _, err := r.client.CreateBuild(resources.Build{ - PackageGUID: packageGUID, - }) + buildCreateOptions := goResource.NewBuildCreate(packageGUID) + + if appDeploy.Process.DiskInMB.IsSet { + buildCreateOptions.StagingDiskInMB = int(appDeploy.Process.DiskInMB.Value) + } + if appDeploy.Process.MemoryInMB.IsSet { + buildCreateOptions.StagingMemoryInMB = int(appDeploy.Process.MemoryInMB.Value) + } + + build, err := r.clientGo.Builds.Create(context.Background(), buildCreateOptions) + if err != nil { return resources.Application{}, resources.Process{}, err }