Merge pull request #14926 from Homebrew/skopeo-retry-copy

github_packages: retry skopeo copy 5 times
This commit is contained in:
Dawid Dziurla 2023-03-08 16:43:07 +01:00 committed by GitHub
commit f78a1298b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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