Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip export of caches with no layers to OCI structures #4336

Merged
merged 1 commit into from
Oct 17, 2023

Commits on Oct 17, 2023

  1. Skip export of caches with no layers to OCI structures

    These happen when a container image is built using only metadata
    actions, and hence does not generate any filesystem changes.
    
    Such a degenerate cache is not interesting, and some OCI registries
    reject OCI images with no layers.
    
    Specifically, this only affects the `registry` and `local` exporters.
    
    The `inline` exporter already early-outs in this case with the same
    warning, and the `gha`, `s3`, and `azblob` exporters are unchanged.
    
    Signed-off-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com>
    TBBle committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    bf211cf View commit details
    Browse the repository at this point in the history