diff --git a/components/image-builder/pkg/builder/builder.go b/components/image-builder/pkg/builder/builder.go index 04e4d47bd8b377..067e1958907d7e 100644 --- a/components/image-builder/pkg/builder/builder.go +++ b/components/image-builder/pkg/builder/builder.go @@ -446,7 +446,7 @@ func (b *DockerBuilder) createBuildVolume(ctx context.Context, buildID string) ( Mounts: []mount.Mount{ {Type: mount.TypeVolume, Source: buildVolName, Target: "/workspace"}, }, - }, nil, containerName) + }, nil, nil, containerName) if err != nil { return "", xerrors.Errorf("cannot create build volume: %w", err) } @@ -489,7 +489,7 @@ func (b *DockerBuilder) buildBaseImage(ctx context.Context, bld *build, src *api Mounts: []mount.Mount{ {Type: mount.TypeVolume, Source: bld.buildVolume, Target: "/workspace"}, }, - }, nil, syncContainerName) + }, nil, nil, syncContainerName) if err != nil { return xerrors.Errorf("cannot create initializer: %w", err) } @@ -607,7 +607,7 @@ func (b *DockerBuilder) buildWorkspaceImage(ctx context.Context, bld *build, bas Mounts: []mount.Mount{ {Type: mount.TypeVolume, Source: bld.buildVolume, Target: "/workspace"}, }, - }, nil, "detectdist-"+bld.ID) + }, nil, nil, "detectdist-"+bld.ID) if err != nil { return xerrors.Errorf("cannot build workspace image: %w", err) } @@ -634,7 +634,7 @@ func (b *DockerBuilder) buildWorkspaceImage(ctx context.Context, bld *build, bas Mounts: []mount.Mount{ {Type: mount.TypeVolume, Source: bld.buildVolume, Target: "/workspace"}, }, - }, nil, "dfgen-"+bld.ID) + }, nil, nil, "dfgen-"+bld.ID) if err != nil { return xerrors.Errorf("cannot build workspace image: %w", err) } diff --git a/components/image-builder/pkg/builder/docker.go b/components/image-builder/pkg/builder/docker.go index 6cf98e551d2a31..6c9feb3a54c073 100644 --- a/components/image-builder/pkg/builder/docker.go +++ b/components/image-builder/pkg/builder/docker.go @@ -166,7 +166,7 @@ func (b *DockerBuilder) serveContext(ctx context.Context, bld *build, volume, pa Mounts: []mount.Mount{ {Type: mount.TypeVolume, Source: volume, Target: "/workspace"}, }, - }, nil, containerName) + }, nil, nil, containerName) if err != nil { return xerrors.Errorf("cannot create context server: %w", err) }