Package Promotion

Package promotion functionality will be useful for release-tool automation of security releases. Some explanation of required fields and the workflow of the request can be found here: omnibus-gitlab#1788 (comment 21741576)

This MR is based on !2 (merged)

Example how to use package promotion:

require 'packagecloud'

credentials = Packagecloud::Credentials.new('username', 'token')
connection = Packagecloud::Connection.new('https', 'packages.gitlab.com')
client = Packagecloud::Client.new(credentials, "packagecloud-ruby #{Packagecloud::VERSION}", connection)
client.create_repository('super-secret-repo', true) # true means private = true

# publish your package on your 'super-secret-repo' and when you are ready to release:
client.promote_package('super-secret-repo', 'ubuntu', 'xenial', 'gitlab-ce_8.15.5-ce.0_amd64.deb', 'super-public-repo')

cc @marin @rymai @rspeicher

Merge request reports

Loading