fix(ci): add https:// to cleanup API URLs

REGISTRY env var is just the hostname without scheme. Docker actions
handle this automatically, but curl needs the full URL.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
wylab
2026-02-14 03:25:43 +01:00
committed by code-server
parent 82ca557b47
commit b62de7799c
+2 -2
View File
@@ -62,7 +62,7 @@ jobs:
page=1
while true; do
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" = "0" ] && break
echo "$versions" | jq -c '.[]' | while read -r pkg; do
@@ -75,7 +75,7 @@ jobs:
id=$(echo "$pkg" | jq -r '.id')
echo "Deleting nanobot:$ver (id=$id, created=$created)"
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
done
[ "$count" -lt 50 ] && break