ci: use internal cluster service URL for PyPI upload
Some checks failed
Build and Publish ray-serve-apps / lint (push) Successful in 1m32s
Build and Publish ray-serve-apps / publish (push) Failing after 2m15s

This commit is contained in:
2026-02-02 12:14:01 -05:00
parent a4ee672c19
commit e497fe110d

View File

@@ -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