mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 19:41:16 +00:00
The ci-* targets need to know where our container images are stored and how they are called to work, so now that we use the GitLab container registry instead of Quay some changes are necessary. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
15 lines
351 B
Bash
15 lines
351 B
Bash
#!/bin/sh
|
|
|
|
prefix="${1##registry.gitlab.com/}"
|
|
|
|
PROJECT_ID=192693
|
|
|
|
all_repos() {
|
|
curl -s "https://gitlab.com/api/v4/projects/$PROJECT_ID/registry/repositories?per_page=100" \
|
|
| tr , '\n' | grep '"path":' | sed 's,"path":",,g;s,"$,,g'
|
|
}
|
|
|
|
all_repos | grep "^$prefix" | sed "s,^$prefix,,g" | while read repo; do
|
|
echo " $repo"
|
|
done | sort -u
|