PowerShell / PSResourceGet

PSResourceGet is the package manager for PowerShell
https://www.powershellgallery.com/packages/Microsoft.PowerShell.PSResourceGet
MIT License
483 stars 92 forks source link

ACR Integration: Populate metadata into PSResourceInfo object #1548

Closed alerickson closed 7 months ago

alerickson commented 7 months ago

PR Summary

This PR takes the metadata json string stored in annotations and populates it into PSResourceInfo object. eg: image

A small change was made to Publish-PSResource as well-- it now pushes org.opencontainers.image.title (the package name) and org.opencontainers.image.description (the full .nupkg name) to annotations. See documentation on naming conventions.

image

Note: the only way to retrieve annotations is to make a call to pull the manifest (ie GET request for a specific tag will not return layers, therefore will not return annotations). See: manifest response vs tag response

PR Context

PR Checklist