How can I set the docker image version automatically from github?

  docker, dockerhub

I have link a github repo with my docker hub account. When there is a push to github master branch, a new image will be built in docker hub. But the image only has LATEST tag. How can I make the version increased automatically?

Ideally, I’d like it follow the sversion 1.0.0. And increase for every push 1.0.1, 1.0.2 1.0.3 etc.

Is there a way to make it follow this pattern?

Source: Docker Questions

LEAVE A COMMENT