Fix upload_packages: use wget instead of curl (dependency conflict)
This commit is contained in:
@@ -382,17 +382,17 @@ upload_packages:
|
||||
artifacts: true
|
||||
script:
|
||||
- |
|
||||
apt-get update && apt-get -y install zip curl
|
||||
apt-get update && apt-get -y install zip
|
||||
|
||||
# Create combined zip
|
||||
zip -r Fabrication/All.zip Fabrication/
|
||||
|
||||
# Upload each zip to package registry
|
||||
# Upload each zip to package registry using wget (curl has dependency issues in this 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"
|
||||
wget --header="JOB-TOKEN: ${CI_JOB_TOKEN}" --method=PUT --body-file="$zipfile" -O- "$url"
|
||||
done
|
||||
artifacts:
|
||||
when: always
|
||||
|
||||
Reference in New Issue
Block a user