Rebase onto upstream (a4d95fd)
#12
@@ -62,7 +62,7 @@ jobs:
|
|||||||
page=1
|
page=1
|
||||||
while true; do
|
while true; do
|
||||||
versions=$(curl -sf -H "Authorization: token $TOKEN" \
|
versions=$(curl -sf -H "Authorization: token $TOKEN" \
|
||||||
"${{ env.REGISTRY }}/api/v1/packages/wylab?type=container&q=nanobot&limit=50&page=$page")
|
"https://${{ env.REGISTRY }}/api/v1/packages/wylab?type=container&q=nanobot&limit=50&page=$page")
|
||||||
count=$(echo "$versions" | jq length)
|
count=$(echo "$versions" | jq length)
|
||||||
[ "$count" = "0" ] && break
|
[ "$count" = "0" ] && break
|
||||||
echo "$versions" | jq -c '.[]' | while read -r pkg; do
|
echo "$versions" | jq -c '.[]' | while read -r pkg; do
|
||||||
@@ -75,7 +75,7 @@ jobs:
|
|||||||
id=$(echo "$pkg" | jq -r '.id')
|
id=$(echo "$pkg" | jq -r '.id')
|
||||||
echo "Deleting nanobot:$ver (id=$id, created=$created)"
|
echo "Deleting nanobot:$ver (id=$id, created=$created)"
|
||||||
curl -sf -X DELETE -H "Authorization: token $TOKEN" \
|
curl -sf -X DELETE -H "Authorization: token $TOKEN" \
|
||||||
"${{ env.REGISTRY }}/api/v1/packages/wylab/container/nanobot/$ver" || true
|
"https://${{ env.REGISTRY }}/api/v1/packages/wylab/container/nanobot/$ver" || true
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
[ "$count" -lt 50 ] && break
|
[ "$count" -lt 50 ] && break
|
||||||
|
|||||||
Reference in New Issue
Block a user