We're trying to use the Docker Build and Publish plugin in conjunction with the Promoted builds plugin. We continuously integrate and build an image for each commit.
We then want the option to "promote" an image for release. This will involve tagging the release with our release version.
The git plugin provide an environment variable for this (PROMOTED_GIT_COMMIT), it would be incredibly useful for us if this plugin provided the image id (PROMOTED_DOCKER_IMAGEID).
I'm not quite sure how this would be done but I did find the part of the promoted builds plugin that appears to take PROMOTED_GIT_COMMIT: https://github.com/jenkinsci/promoted-builds-plugin/blob/726f7a0966f54c796e6e36aca8be58f1833a15c3/src/main/java/hudson/plugins/promoted_builds/Promotion.java#L119