Skip to content

Publish image info as OCI artifact - #2155

Merged
lbussell merged 7 commits into
dotnet:mainfrom
lbussell:oci-image-info
Jun 19, 2026
Merged

lbussell merged 7 commits into
dotnet:mainfrom
lbussell:oci-image-info

Conversation

@lbussell

Copy link
Copy Markdown
Member

This is part 1/2 of #2142. This contains the publishing side of things. Follow-up PR will be the consumption side.

This PR is focused on being as small as possible while adding the OCI artifact publishing.

Contents:

  • New command, publishImageInfoArtifact, that can be used in the exact same place as the existing publishImageInfo command.
  • New service, ImageInfoService, that handles publishing the image info artifact. It will also handle pulling the artifact later, in the consumption side of things.
  • New field in manifest.json for specifying where the image info artifact will be published to.
  • The artifact is of type application/vnd.microsoft.dotnet.image-info.v1+json.

Other notes:

  • RepoPrefix is read directly from publishConfig into publishImageInfoArtifact without going through a CLI option (first command that does this, it should be the pattern going forwards).

@lbussell
lbussell requested a review from a team as a code owner June 19, 2026 02:45
@lbussell lbussell changed the title Oci image info Publish image info as OCI artifact Jun 19, 2026
Comment thread src/ImageBuilder/ImageInfoService.cs Resolved
Comment thread src/ImageBuilder/Oras/IOrasService.cs Resolved
@lbussell
lbussell merged commit 4b041f1 into dotnet:main Jun 19, 2026
20 checks passed
@lbussell
lbussell deleted the oci-image-info branch June 19, 2026 16:14
lbussell added a commit that referenced this pull request Jul 1, 2026
This PR reverts:
- #2155 
- #2157

This is related to #2142. Publishing public OCI artifacts to MAR for
this might not be the best long-term decision.

My plan is to take this work in a different direction - see the
following issues for context:
- #2166
- #1602
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants