title: How to release docker image with Jenkins pipeline
body: <p>I have a project to build a docker image, in my case it's a extension of mongo image which contains (inside the container) data. And I use this mongo docker image for integration tests purpose. </p>
  
  <p>At the moment, Maven is not used to build the project. When I want to release a version of this image, I do it on my computer which is not ideal. </p>
  
  <p>I would like to kept a file which contains my current version of my docker image (like pom.xml). </p>
  
  <p>What should I do, add a pom.xml in my project for versionning and maven-release-plugin, add a simple version.txt which I update with during my release process ? </p>
  
  <p>Or is there a like "docker.version" file I do not know to do this ? </p>
  
  <p>I post an example of my project on GitHub : <a href="https://github.com/Ameausoone/mongodb-docker-with-data" rel="nofollow noreferrer">https://github.com/Ameausoone/mongodb-docker-with-data</a> </p>