github_packages: handle "manifest unknown"

This commit is contained in:
Bo Anderson 2021-04-12 18:58:28 +01:00
parent 528ac5d5aa
commit ae91ec2772
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

View File

@ -235,7 +235,7 @@ class GitHubPackages
inspect_result = system_command(skopeo, print_stderr: false, args: inspect_args)
# Order here is important
if !inspect_result.status.success? && inspect_result.stderr.exclude?("name unknown")
if !inspect_result.status.success? && !inspect_result.stderr.match?(/(name|manifest) unknown/)
# We got an error, and it was not about the tag or package being unknown.
if warn_on_error
opoo "#{image_uri} inspection returned an error, skipping upload!\n#{inspect_result.stderr}"