Skip to content

Commit 70b4677

Browse files
Update fetch-oci-and-docker.sh
Signed-off-by: John Osborne <josborne@chainguard.dev>
1 parent 40cf473 commit 70b4677

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +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 .
1416

1517
echo ""
1618
echo "The following repo names have been save to $output_file:"

0 commit comments

Comments
 (0)