To identify the source code used to build each :latest Docker image the corresponding Gradle tasks should insert a label into the image. Tagged releases do not need this information (as they're usually driven from a tag) but having it in tagged images might be useful and at least consistent, e.g.: -
LABEL commit-hash="5610e3b"
(Obviously the hash is will be auto-generated)
The shortened 7-character hash is probably sufficient.
This will simplify any future tagging/referencing that has to be done for a given image.
To identify the source code used to build each
:latest
Docker image the corresponding Gradle tasks should insert a label into the image. Tagged releases do not need this information (as they're usually driven from a tag) but having it in tagged images might be useful and at least consistent, e.g.: -LABEL commit-hash="5610e3b"
(Obviously the hash is will be auto-generated) The shortened 7-character hash is probably sufficient.
This will simplify any future tagging/referencing that has to be done for a given image.