From 2b717d1795be403ff4524537198b9ec05cc780e9 Mon Sep 17 00:00:00 2001 From: timmyhadwen Date: Sat, 17 Jan 2026 15:16:14 +1000 Subject: [PATCH] Fix YAML syntax for Python heredoc --- kibot-ci.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/kibot-ci.yml b/kibot-ci.yml index 90c4212..0d538ce 100644 --- a/kibot-ci.yml +++ b/kibot-ci.yml @@ -381,18 +381,14 @@ upload_packages: - job: inventree_main artifacts: true script: + - apt-get update && apt-get -y install zip + - zip -r Fabrication/All.zip Fabrication/ - | - apt-get update && apt-get -y install zip - - # Create combined zip - zip -r Fabrication/All.zip Fabrication/ - - # 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" - python3 -c " + python3 << EOF import urllib.request with open('$zipfile', 'rb') as f: data = f.read() @@ -400,7 +396,7 @@ req = urllib.request.Request('$url', data=data, method='PUT') req.add_header('JOB-TOKEN', '${CI_JOB_TOKEN}') urllib.request.urlopen(req) print('Upload complete') -" +EOF done artifacts: when: always