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:
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user