To upload a Debian package to this repository, use curl
:
curl --verbose \
--header "Authorization: Bearer {token}" \
--form "package=@{path-to-package-file}" \
--form "distribution={distro}" \
--form "readme=<{path-to-readme-file}" \
https://apt.authelia.com/stable/debian/upload/
Arguments
Argument |
Explanation |
Example |
--header Authorization...
Optional
|
Supply an authentication token. Either a token or a username/password is required. |
--header "Authorization: Bearer a57f0fe6658b72145f4a9b59c5c90bf46e2f09bc" |
--user
Optional
|
Your username and password separated by a colon. Either a username/password or a token is required. |
--user "larry:correcthorse" |
--form package=...
Mandatory
|
Upload the package file as a multipart/form-data file. |
--form "package=@mypackage_1.0_all.deb" |
--form distribution=...
Mandatory
Multiple
|
Specify the distribution(s) where the package is available. You can supply more than one
distribution. If this repository holds only packages that work on any distribution, you can keep it
simple by specifying --form distribution=all .
|
--form "distribution=stretch" --form "distribution=bionic" |
--form readme=...
Optional
|
Supply Markdown text to show on the package web page. Upload as text, not a file upload.
(Use < with curl; see example.)
|
--form "readme=<README.md" |