Merge pull request #15735 from Bo98/ghp-force-oci

github_packages: ensure only OCI format is uploaded
This commit is contained in:
Bo Anderson 2023-07-22 20:04:00 +01:00 committed by GitHub
commit 35865e7976
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -429,7 +429,7 @@ class GitHubPackages
"org.opencontainers.image.ref.name" => version_rebuild)
puts
args = ["copy", "--retry-times=3", "--all", "oci:#{root}", image_uri.to_s]
args = ["copy", "--retry-times=3", "--format=oci", "--all", "oci:#{root}", image_uri.to_s]
if dry_run
puts "#{skopeo} #{args.join(" ")} --dest-creds=#{user}:$HOMEBREW_GITHUB_PACKAGES_TOKEN"
else