多个发行版的 Bintray Debian 存储库

Bintray Debian Repository for several distribuitions

使用 OSS Bintray:
尝试为特定发行版上传 deb 文件时,文件上传到 "dists/all" 而不是 dists/xenial.
这是我的命令:
创建一个回购:

curl -uUSER:API_KEY https://api.bintray.com/repos/myorg/Debian -H "Content-Type: application/json" -d '{"name":"Debian","type":"debian","default_debian_architecture":"amd64","default_debian_distribution":"all","default_debian_component":"main","private":false,"desc":"This repo for our poc","business_unit":"businessUnit1","labels":["label1","label2"],"gpg_sign_metadata":false,"gpg_sign_files":false,"gpg_use_owner_key":false}' -v

然后我通过 UI 创建了一个包 "Test" 并上传了一个 debian 文件到 "Test":

curl -T file_0.9.8_amd64.deb -uUSER:API_KEY https://api.bintray.com/content/myorg/Debian/Test/0.9.8/file_0.9.8_amd64.deb;deb_distribution=xenial;deb_component=main;deb_architecture=amd64

有没有办法对所有发行版 (xenial/bionic) 和所有架构使用一个存储库?

是的,您可以为所有的 Debian 发行版和体系结构拥有一个存储库。
您需要使用 逗号分隔值 upload debian 命令中提交分发和体系结构。它应该是这样的:

curl -T your_file.deb -u user:api_key "https://api.bintray.com/content/:subject/:repo/:package/:version/:file_path;deb_distribution=xenial,bionic;deb_component=main;deb_architecture=amd64"