initial commit
This commit is contained in:
13
get-gitlab-container-repos.sh
Normal file
13
get-gitlab-container-repos.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source config.sh
|
||||
|
||||
SCOPE="registry:catalog:*"
|
||||
|
||||
token=$(curl -s --request GET \
|
||||
--user "${GL_USER}:${GL_TOKEN}" \
|
||||
--url "${GL_DOMAIN}/jwt/auth?service=container_registry&scope=${SCOPE}" | jq -r .token)
|
||||
|
||||
curl --header "Authorization: Bearer $token" \
|
||||
--url "${GL_CR_DOMAIN}/v2/_catalog"
|
||||
|
||||
Reference in New Issue
Block a user