Andreas Gohr
Andreas Gohr

Reputation: 4935

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 (:jessie and :wheezy) but would also like to have a :latest tag pointing to the :jessie flavor.

For now I simply duplicated the jessie line in the automated build config:

docker settings

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.

Upvotes: 2

Views: 522

Answers (2)

michael_bitard
michael_bitard

Reputation: 4212

It's currently not possible to have more than one docker tag name by build. Duplicating the build is the only solution.

Upvotes: 2

michael_bitard
michael_bitard

Reputation: 4212

You can use the tags regexp regexp

Look at the last tag that gets created.

Upvotes: 0

Related Questions