Skip to content

Commit 7cdd8d7

Browse files
authored
Merge pull request #150 from yoshuawuyts/add-authors-to-publisher-list
Add support for OCI authors annotation
2 parents 12f0501 + e704c2f commit 7cdd8d7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crates/wasm-pkg-client/src/oci/publisher.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ impl PackagePublisher for OciBackend {
5555
homepage.to_string(),
5656
);
5757
}
58+
if let Some(authors) = &meta.author {
59+
annotations.insert(
60+
"org.opencontainers.image.authors".to_string(),
61+
authors.to_string(),
62+
);
63+
}
5864

5965
let reference: Reference = self.make_reference(package, Some(version));
6066
let auth = self.auth(&reference, RegistryOperation::Push).await?;

0 commit comments

Comments
 (0)