Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle docker hub registry name variants #1158

Merged
merged 5 commits into from
May 16, 2024
Merged

Conversation

bdehamer
Copy link
Collaborator

Adds logic to better handle the various registry names which may be used to prefix Docker Hub-hosted images.

We require that all image names be fully qualified with a registry -- some tools (like the docker CLI) will support registry-less names and default to Docker Hub. We DO NOT support that use case but users still have a few different ways they can qualify their Hub-hosted images:

docker.io/foo/bar
index.docker.io/foo/bar

The new logic will detect either of the two above cases and translate the API hostname to the officially-recommended value: registry-1.docker.io.

See: actions/attest-build-provenance#68

Signed-off-by: Brian DeHamer <bdehamer@github.com>
@bdehamer bdehamer requested a review from a team as a code owner May 10, 2024 21:48
Copy link

changeset-bot bot commented May 10, 2024

🦋 Changeset detected

Latest commit: 1b54490

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sigstore/oci Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

packages/oci/src/image.ts Dismissed Show dismissed Hide dismissed
@bdehamer bdehamer merged commit 70f4782 into main May 16, 2024
26 of 28 checks passed
@bdehamer bdehamer deleted the bdehamer/oci-docker-hub branch May 16, 2024 17:07
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.

None yet

2 participants