Skip to content

Commit 6606ef9

Browse files
committed
type=oci
1 parent 7dff570 commit 6606ef9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

build/build/Tasks/DockerBaseTask.cs

+5-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ protected virtual void DockerImage(BuildContext context, DockerDepsImage dockerI
77
var buildSettings = GetBuildSettings(dockerImage, context.DockerRegistry);
88

99
context.DockerBuildXBuild(buildSettings, GetWorkingDir(dockerImage).ToString(), "--annotation \"org.opencontainers.image.description=GitTools build images\"");
10-
10+
context.DockerLoad(new()
11+
{
12+
Input = "./dest.tar",
13+
});
1114
var dockerTags = GetDockerTags(dockerImage, context.DockerRegistry, dockerImage.Architecture).ToArray();
1215

1316
if (!context.PushImages)
@@ -46,7 +49,7 @@ protected virtual DockerBuildXBuildSettings GetBuildSettings(DockerDepsImage doc
4649
Rm = true,
4750
Tag = dockerTags,
4851
Platform = [$"linux/{suffix}"],
49-
Output = ["type=docker,oci-mediatypes=true"],
52+
Output = ["type=oci,dest=./dest.tar"],
5053
Pull = true,
5154
NoCache = true,
5255
/*Label =

0 commit comments

Comments
 (0)