Bintray Debian存储库,用于多个发行版

时间:2018-07-30 14:57:54

标签: debian bintray

使用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

然后我通过用户界面创建了一个程序包“ 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)和所有体系结构使用一个仓库?

1 个答案:

答案 0 :(得分:2)

是的,您可以为所有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"