pub async fn write_artifact( artifact: &[u8], image: &Reference, output: Option<String>, ) -> Result<String>