pr-upload: Fix GitHub Packages for Linux

Fix GitHub Packages for Linux and third-party taps.

- Copy all architecture images using `skopeo copy --all`
This commit is contained in:
Shaun Jackman 2021-03-25 16:30:30 -07:00 committed by Mike McQuaid
parent bfb9134884
commit a631377fd2
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -259,7 +259,7 @@ class GitHubPackages
image_tag = "#{org_prefix}/#{package_name}:#{version_rebuild}" image_tag = "#{org_prefix}/#{package_name}:#{version_rebuild}"
puts puts
system_command!(skopeo, verbose: true, print_stdout: true, args: [ system_command!(skopeo, verbose: true, print_stdout: true, args: [
"copy", "--dest-creds=#{user}:#{token}", "copy", "--all", "--dest-creds=#{user}:#{token}",
"oci:#{root}", "docker://#{image_tag}" "oci:#{root}", "docker://#{image_tag}"
]) ])
ohai "Uploaded to https://github.com/orgs/Homebrew/packages/container/package/#{package_name}" ohai "Uploaded to https://github.com/orgs/Homebrew/packages/container/package/#{package_name}"