Merge remote-tracking branch 'origin/master'

This commit is contained in:
Dr. Axel Uhl
2020-03-23 23:47:57 +01:00
559 changed files with 10973 additions and 3902 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ shift
echo "Deleting tags $* in repository ${REPO}..."
# delete images and/or tags
IMAGE_TAGS=$(curl -s -H "Authorization: JWT ${TOKEN}" https://cloud.docker.com/v2/repositories/${REPO}/tags/?page_size=1000 | jq -r '.results|.[]|.name')
IMAGE_TAGS=$(curl -s -H "Authorization: JWT ${TOKEN}" https://hub.docker.com/v2/repositories/${REPO}/tags/?page_size=1000 | jq -r '.results|.[]|.name')
for j in ${IMAGE_TAGS}
do
# echo "Checking tag $j"
@@ -39,7 +39,7 @@ do
if [[ $j =~ $k ]]; then
found=1
echo -n " - ${j} ... "
curl -X DELETE -s -H "Authorization: JWT ${TOKEN}" https://cloud.docker.com/v2/repositories/${REPO}/tags/${j}/
curl -X DELETE -s -H "Authorization: JWT ${TOKEN}" https://hub.docker.com/v2/repositories/${REPO}/tags/${j}/
echo "DELETED ($?)"
fi
fi
+1 -1
View File
@@ -14,6 +14,6 @@ echo
# get token
echo "Retrieving token ..."
TOKEN=$(curl -s -H "Content-Type: application/json" -X POST -d '{"username": "'${UNAME}'", "password": "'${UPASS}'"}' https://cloud.docker.com/v2/users/login/ | jq -r .token)
TOKEN=$(curl -s -H "Content-Type: application/json" -X POST -d '{"username": "'${UNAME}'", "password": "'${UPASS}'"}' https://hub.docker.com/v2/users/login/ | jq -r .token)
echo "$TOKEN" >"${TOKEN_FILE}"
+1 -1
View File
@@ -23,7 +23,7 @@ shift
# -------
IMAGE_TAGS=$(curl -s -H "Authorization: JWT ${TOKEN}" https://cloud.docker.com/v2/repositories/${REPO}/tags/?page_size=1000 | jq -r '.results|.[]|.name')
IMAGE_TAGS=$(curl -s -H "Authorization: JWT ${TOKEN}" https://hub.docker.com/v2/repositories/${REPO}/tags/?page_size=1000 | jq -r '.results|.[]|.name')
for j in ${IMAGE_TAGS}
do
if [ "$#" = "0" ]; then