DockerHub set tag alias in automated build
I’m using Docker Hub’s automated build system to build a docker image. That image comes in two flavors (Debian jessie and wheezy based). I like to have speaking tags for both of those (
:wheezy) but would also like to have a
:latest tag pointing to the
For now I simply duplicated the jessie line in the automated build config:
But this seems to actually build the image twice. What I would need is a way to specify a tag alias, but I am not sure if that’s possible. And if so how to do it.
2 Solutions collect form web for “DockerHub set tag alias in automated build”
It’s currently not possible to have more than one docker tag name by build. Duplicating the build is the only solution.
You can use the tags regexp
Look at the last tag that gets created.