Skip to content

Commit 7b7db01

Browse files
Update API endpoint for Docker catalog fetching
Signed-off-by: John Osborne <josborne@chainguard.dev>
1 parent 70b4677 commit 7b7db01

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

artifactory/docker/fetch-oci-and-docker.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ output_file=${1:-repositories.txt}
1111
# Step 1: Fetch repository names
1212
reponames=$(curl -s -X POST -H "Authorization: Bearer $token" -H "Content-Type: text/plain" "$artifactory_url/api/search/aql" --data 'items.find().include("repo")' | jq -r '.results[].repo')
1313
# reponames=$(curl -s -X POST -H "Authorization: Bearer $token" -H "Content-Type: text/plain" "$artifactory_url/api/search/aql" --data 'items.find({"repo": "cgr-pov", "type": "file", "name": {"$match": "manifest.json"}}).include("repo", "path", "name")' | jq -r '.results[] | "\(.repo)/\(.path)"')
14-
# curl -s -H "Authorization: Bearer $token" "$artifactory_url/artifactory/api/docker/cgr-pov/v2/_catalog" | jq .
15-
# curl -s -H "Authorization: Bearer $token" "$artifactory_url/artifactory/api/docker/cgr-pov/v2/go/tags/list" | jq .
14+
# curl -s -H "Authorization: Bearer $token" "$artifactory_url/api/docker/cgr-pov/v2/_catalog" | jq .
15+
# curl -s -H "Authorization: Bearer $token" "$artifactory_url/api/docker/cgr-pov/v2/go/tags/list" | jq .
1616

1717
echo ""
1818
echo "The following repo names have been save to $output_file:"

0 commit comments

Comments
 (0)