Skip to content

Show manifest media type for container registry image tag

What does this MR do

We added a icon to distinguish Docker manifest lists and OCI index tags on the container registry with icon/tooltip text in !161644 (merged)

This MR

  1. Reverts the changes in !161644 (merged)
  2. Replaces size which is always 0 with a badge with the text 'index' for Docker manifest list or OCI index tags
  3. Displays the manifest media type for image tags when the GraphQL api returns them. This is displayed as part of the collapsible details section

Why?

Outcome of discussion

Changelog: changed

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screenshot_2024-09-25_at_11.39.51_PM Screenshot_2024-09-25_at_11.38.35_PM

How to set up and validate locally

  1. Setup container registry https://gitlab.com/gitlab-org/gitlab-development-kit/blob/main/doc/howto/registry.md
  2. Enable the metadata database https://gitlab.com/gitlab-org/container-registry/-/blob/master/docs/database-local-setup.md?ref_type=heads
  3. Follow instructions to push multi-arch images.
  4. Visit Project > Deploy > Container Registry
  5. Click on the image to view the tags list page
  6. Index tag should have index badge
  7. All tags should have Manifest media type row added if

Related to #431048 (closed)

Edited by Rahul Chanila

Merge request reports

Loading