Debugging & Testing
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

- Mistakes made in the curl methods used & the curl upload-file flag - rectified.
This commit is contained in:
Kieron Morris 2025-03-09 21:18:49 +00:00
parent 315050f095
commit 5e6e6c394a

View File

@ -46,16 +46,16 @@ steps:
# Upload commit-specific ISO
- |
echo "Uploading ${ISO_NAME} to Gitea Packages..."
curl -X POST "https://gitea.spexeah.com/api/packages/Spexeah/generic/asuro-iso/${BUILD_VERSION}" \
curl -X PUT "https://gitea.spexeah.com/api/packages/Spexeah/generic/asuro-iso/${BUILD_VERSION}/Asuro.iso" \
-H "Authorization: token $GITEA_TOKEN" \
-F "file=@$ISO_NAME"
--upload-file $ISO_NAME
# Update the "latest" alias (delete old latest, re-upload)
- |
echo "Updating latest ISO reference..."
curl -X DELETE "https://gitea.example.com/api/packages/Spexeah/generic/asuro-iso/latest" \
curl -X DELETE "https://gitea.spexeah.com/api/packages/Spexeah/generic/asuro-iso/latest/Asuro.iso" \
-H "Authorization: token $GITEA_TOKEN" || echo "No previous latest version found."
curl -X POST "https://gitea.example.com/api/packages/Spexeah/generic/asuro-iso/latest" \
curl -X POST "https://gitea.spexeah.com/api/packages/Spexeah/generic/asuro-iso/latest/Asuro.iso" \
-H "Authorization: token $GITEA_TOKEN" \
-F "file=@$ISO_NAME"
--upload-file $ISO_NAME