Fix upload_packages: use pre-installed curl
This commit is contained in:
@@ -387,12 +387,12 @@ upload_packages:
|
|||||||
# Create combined zip
|
# Create combined zip
|
||||||
zip -r Fabrication/All.zip Fabrication/
|
zip -r Fabrication/All.zip Fabrication/
|
||||||
|
|
||||||
# Upload each zip to package registry using wget (curl has dependency issues in this image)
|
# Upload each zip to package registry (curl is pre-installed in the image)
|
||||||
for zipfile in $(find Fabrication/ -maxdepth 1 -name '*.zip'); do
|
for zipfile in $(find Fabrication/ -maxdepth 1 -name '*.zip'); do
|
||||||
basename=$(basename "$zipfile" .zip)
|
basename=$(basename "$zipfile" .zip)
|
||||||
url="${PACKAGE_REGISTRY_URL}/${VERSION}/${basename}-${VERSION}.zip"
|
url="${PACKAGE_REGISTRY_URL}/${VERSION}/${basename}-${VERSION}.zip"
|
||||||
echo "Uploading: $zipfile to $url"
|
echo "Uploading: $zipfile to $url"
|
||||||
wget --header="JOB-TOKEN: ${CI_JOB_TOKEN}" --method=PUT --body-file="$zipfile" -O- "$url"
|
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file "$zipfile" "$url"
|
||||||
done
|
done
|
||||||
artifacts:
|
artifacts:
|
||||||
when: always
|
when: always
|
||||||
|
|||||||
Reference in New Issue
Block a user