I’ve been struggling hard to publish a debian package to my project repo. After creating the distribution, I’ve tried publishing my package with the following command:
curl --request PUT --header 'PRIVATE-TOKEN:$DEB_PUB_TOKEN' --header 'Content-Type:application/vnd.debian.binary-package;charset=binary' --upload-file '<MYDEB>.deb' 'https://gitlab.<example>.com/api/v4/projects/493/packages/debian?distribution=sid&component=main'
I get back the error: {"error":"The provided content-type 'application/vnd.debian.binary-package' is not supported."}
How am I supposed to upload the debian if the mime-type is not allowed?
You may wish to take a look at this issue epic: Make the Debian repository generally available (GA) (&6057) · Epics · GitLab.org · GitLab mainly because this as mentioned in the docs is still experimental and most likely why things still don’t work right. That’s not including the security risks of enabling that option (mentioned in the Gitlab docs). I expect it would be good to report an issue within the linked Epic so that Gitlab devs can look at the problem and fix the mime type issue.