|
@@ -218,6 +218,7 @@ func (c *CreateAgent) CreateFromRegistry(
|
|
|
func (c *CreateAgent) CreateFromDocker(
|
|
func (c *CreateAgent) CreateFromDocker(
|
|
|
overrideValues map[string]interface{},
|
|
overrideValues map[string]interface{},
|
|
|
imageTag string,
|
|
imageTag string,
|
|
|
|
|
+ extraBuildConfig *types.BuildConfig,
|
|
|
) (string, error) {
|
|
) (string, error) {
|
|
|
opts := c.CreateOpts
|
|
opts := c.CreateOpts
|
|
|
|
|
|
|
@@ -293,7 +294,7 @@ func (c *CreateAgent) CreateFromDocker(
|
|
|
if opts.Method == DeployBuildTypeDocker {
|
|
if opts.Method == DeployBuildTypeDocker {
|
|
|
err = buildAgent.BuildDocker(agent, opts.LocalPath, opts.LocalPath, opts.LocalDockerfile, imageTag, "")
|
|
err = buildAgent.BuildDocker(agent, opts.LocalPath, opts.LocalPath, opts.LocalDockerfile, imageTag, "")
|
|
|
} else {
|
|
} else {
|
|
|
- err = buildAgent.BuildPack(agent, opts.LocalPath, imageTag, "", nil)
|
|
|
|
|
|
|
+ err = buildAgent.BuildPack(agent, opts.LocalPath, imageTag, "", extraBuildConfig)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if err != nil {
|
|
if err != nil {
|