Add semantic version input requirement to dist oci build step

Update the oci build step to:

  • Enforce the tag portion of the image input is a valid semantic version.
  • Add a org.opencontainers.image.version annotation to image and image index.

Partially addresses Bake version into the Step OCI image (#252 - closed). We still have to make changes to the promote step to use the version added in the build step.

This MR builds on Refactor build step images inputs (!260 - merged). I'll wait for that to be merged before merging this one.

Edited by Axel von Bertoldi

Merge request reports

Loading