chore: Update Drone CI configuration for package upload process
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Glenn Y. Rolland 2024-12-30 00:53:26 +01:00
parent 59e5652125
commit 744ef5daf1

View file

@ -64,10 +64,17 @@ steps:
commands:
- apk add --update --no-cache curl jq
- env |grep DRONE
# Upload packages
- |
curl -H "Authorization: token $PACKAGE_UPLOAD_TOKEN" \
--upload-file "/_cache/bin/$PACKAGE_BASENAME" \
"$PACKAGE_UPLOAD_URL/$DRONE_TAG/$PACKAGE_BASENAME"
# - |
# for deb in /_cache/bin/*.deb; do
# curl -H "Authorization: token $PACKAGE_UPLOAD_TOKEN" \
# --upload-file "$deb" \
# "$PACKAGE_UPLOAD_URL/$DRONE_TAG/$(basename $deb)"
# done
- |
set -x
curl -X POST \
@ -93,6 +100,16 @@ steps:
-H "Content-Type: multipart/form-data" \
-F "attachment=@/_cache/bin/$PACKAGE_BASENAME" \
"$RELEASES_URL/$TAG_ID/assets?name=$PACKAGE_BASENAME"
# - |
# set -x
# for deb in /_cache/bin/*.deb; do
# curl -X POST \
# -H "Authorization: token $RELEASE_UPLOAD_TOKEN" \
# -H "accept: application/json" \
# -H "Content-Type: multipart/form-data" \
# -F "attachment=@$deb" \
# "$RELEASES_URL/$TAG_ID/assets?name=$(basename $deb)"
# done
# FIXME: handle multi-arch