ci: use internal cluster service URL for PyPI upload
This commit is contained in:
@@ -65,15 +65,22 @@ jobs:
|
||||
TWINE_PASSWORD: ${{ secrets.REGISTRY_TOKEN }}
|
||||
run: |
|
||||
cd ray-serve
|
||||
# Use internal registry URL to bypass Cloudflare 100MB limit
|
||||
# curl with -k to skip SSL verification for self-signed cert
|
||||
# Use internal cluster service URL directly - no SSL, no auth proxy
|
||||
for file in dist/*.whl dist/*.tar.gz; do
|
||||
if [ -f "$file" ]; then
|
||||
echo "Uploading $file..."
|
||||
curl -k --fail -X POST \
|
||||
response=$(curl -s -w "\n%{http_code}" -X POST \
|
||||
-u "$TWINE_USERNAME:$TWINE_PASSWORD" \
|
||||
-F "content=@$file" \
|
||||
"https://registry.lab.daviestechlabs.io/api/packages/daviestechlabs/pypi/upload"
|
||||
"http://gitea-http.gitea.svc.cluster.local:3000/api/packages/daviestechlabs/pypi/upload")
|
||||
http_code=$(echo "$response" | tail -n1)
|
||||
body=$(echo "$response" | sed '$d')
|
||||
echo "Response: $body"
|
||||
echo "HTTP Code: $http_code"
|
||||
if [ "$http_code" != "201" ] && [ "$http_code" != "200" ]; then
|
||||
echo "Upload failed with HTTP $http_code"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user