Skip to content

Commit 2db4bc2

Browse files
committed
containertool: Include name annotation in index, needed by container to load from archive
1 parent a0046c7 commit 2db4bc2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sources/containertool/Extensions/RegistryClient+publish.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,10 @@ func publishContainerImage<Source: ImageSource, Destination: ImageDestination>(
160160
mediaType: manifestDescriptor.mediaType,
161161
digest: manifestDescriptor.digest,
162162
size: Int64(manifestDescriptor.size),
163-
platform: .init(architecture: architecture, os: os)
163+
platform: .init(architecture: architecture, os: os),
164+
annotations: [
165+
"org.opencontainers.image.ref.name": "containertool-save"
166+
]
164167
)
165168
]
166169
)

0 commit comments

Comments
 (0)