github_packages: reduce skopeo retry times to 2

This commit is contained in:
Dawid Dziurla 2023-03-09 09:42:43 +01:00
parent de98ad53cc
commit c4cf2d208e
No known key found for this signature in database
GPG Key ID: 7B6D8368172E9B0B

View File

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