In the after_success section of the .travis.yml file, we log on Docker Hub registry, then we build the image.
We also tag the generated image with:
the short git commit hash the travis build number latest if it is the master branch, otherwise the name of the branch And finally we push it on the Docker Hub registry