From 0dc6ff725f9241dcd96f2c6e5a44ec01e15e8f45 Mon Sep 17 00:00:00 2001 From: timmyhadwen Date: Sat, 17 Jan 2026 15:15:36 +1000 Subject: [PATCH] Fix upload_packages: use Python urllib (no curl/wget in image) --- kibot-ci.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/kibot-ci.yml b/kibot-ci.yml index 1605513..90c4212 100644 --- a/kibot-ci.yml +++ b/kibot-ci.yml @@ -387,12 +387,20 @@ upload_packages: # Create combined zip zip -r Fabrication/All.zip Fabrication/ - # Upload each zip to package registry (curl is pre-installed in the image) + # Upload each zip to package registry using Python (curl/wget not available in image) for zipfile in $(find Fabrication/ -maxdepth 1 -name '*.zip'); do basename=$(basename "$zipfile" .zip) url="${PACKAGE_REGISTRY_URL}/${VERSION}/${basename}-${VERSION}.zip" echo "Uploading: $zipfile to $url" - curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file "$zipfile" "$url" + python3 -c " +import urllib.request +with open('$zipfile', 'rb') as f: + data = f.read() +req = urllib.request.Request('$url', data=data, method='PUT') +req.add_header('JOB-TOKEN', '${CI_JOB_TOKEN}') +urllib.request.urlopen(req) +print('Upload complete') +" done artifacts: when: always