From e704c2f8b530edd9afef627125db8dcc5b461a60 Mon Sep 17 00:00:00 2001 From: Yosh Date: Thu, 13 Feb 2025 15:11:14 +0100 Subject: [PATCH] Add support for OCI authors annotation --- crates/wasm-pkg-client/src/oci/publisher.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/wasm-pkg-client/src/oci/publisher.rs b/crates/wasm-pkg-client/src/oci/publisher.rs index ba8d5d2..0b4c5b5 100644 --- a/crates/wasm-pkg-client/src/oci/publisher.rs +++ b/crates/wasm-pkg-client/src/oci/publisher.rs @@ -55,6 +55,12 @@ impl PackagePublisher for OciBackend { homepage.to_string(), ); } + if let Some(authors) = &meta.author { + annotations.insert( + "org.opencontainers.image.authors".to_string(), + authors.to_string(), + ); + } let reference: Reference = self.make_reference(package, Some(version)); let auth = self.auth(&reference, RegistryOperation::Push).await?;