Merge pull request #11118 from Bo98/ghp-manifest-unknown

github_packages: handle "manifest unknown"
This commit is contained in:
Michka Popoff 2021-04-12 20:26:05 +02:00 committed by GitHub
commit f1c08c3801
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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}"