Skip to content

Commit

Permalink
core: version-chooser: Support Docker OCI images
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani authored and patrickelectric committed Jan 23, 2023
1 parent b058534 commit 9c04800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/services/versionchooser/utils/dockerhub.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async def fetch_sha(self, metadata: TagMetadata) -> str:
"""Fetches the digest sha from a tag. This returns the image id displayed by 'docker image ls'"""
header = {
"Authorization": f"Bearer {self.last_token}",
"Accept": "application/vnd.docker.distribution.manifest.v2+json",
"Accept": "application/vnd.docker.distribution.manifest.v2+json,application/vnd.oci.image.manifest.v1+json",
}
async with aiohttp.ClientSession() as session:
url = f"{self.index_url}/v2/{metadata.repository}/manifests/{metadata.digest}"
Expand Down

0 comments on commit 9c04800

Please sign in to comment.