Skip to content

Commit 9af410c

Browse files
committed
Fix Docker lifecycle creation issue
Docker lifecycle requires that data be set, even if it's empty
1 parent 2048735 commit 9af410c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

operation/push.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,10 @@ func (p *AppPushOperation) uploadBitsPackage(ctx context.Context, app *resource.
351351
func (p *AppPushOperation) buildDroplet(ctx context.Context, pkg *resource.Package, manifest *AppManifest) (*resource.Droplet, error) {
352352
newBuild := resource.NewBuildCreate(pkg.GUID)
353353
if pkg.Type == resource.LifecycleDocker.String() {
354-
newBuild.Lifecycle = &resource.Lifecycle{Type: pkg.Type}
354+
newBuild.Lifecycle = &resource.Lifecycle{
355+
Type: pkg.Type,
356+
Data: &resource.DockerLifecycle{}, // Empty docker lifecycle data
357+
}
355358
} else {
356359
newBuild.Lifecycle = &resource.Lifecycle{
357360
Type: resource.LifecycleBuildpack.String(),

0 commit comments

Comments
 (0)