std icon indicating copy to clipboard operation
std copied to clipboard

feat(ops): add `revise` family of functions

Open nrdxp opened this issue 2 years ago • 1 comments

Utility functions to allow for building containers in a mono-repo style environment where the source code is contained in the same repository as the std code, specifically so that one may detect meaningful changes to the image via its tag in the special case where the package's output includes the revision of the source code (e.g. for displaying the version to the user).

Without special processing, this kind of package would cause the OCI image tag to change on each new revision whether the actual contents of the image changed or not. Combined with std.incl, one may have a very strong indicator for when the contents of the image actually includes meaningful changes which avoids flooding the remote registry with superflous copies.

reviseOCI can also be called where the package does not need the revsion at build time but you simply want to tag the image by its hash for later processing by the proviso, and you also want to include additional tags on the image, such as the revision.

nrdxp avatar Mar 21 '23 01:03 nrdxp

@gytis-ivaskevicius @michalrus

This is PR and the technique behind it is quite relevant for our repositories where stakeholders expect to see the most significant revision that generated any particular build.

blaggacao avatar Mar 21 '23 04:03 blaggacao