bazel-contrib / rules_oci

Bazel rules for building OCI containers
Apache License 2.0
305 stars 159 forks source link

Using `oci_image_index` doesn't produce a `.digest` target while `oci_image` does #735

Open mislavmandaricaxilis opened 1 week ago

mislavmandaricaxilis commented 1 week ago

After #346 got merged, using oci_image macro also produces a .digest target, which contains a digest of the image.

But this was not done for oci_image_index, so switching to a multi-arch images causes a regression in experience because .digest target is missing.

Same as with oci_image, it's easy to write it ourselves, but having it in rules_oci directly makes it easy and consistent.

I'm willing to contribute a PR myself for this change if maintainers agree with the suggestion.