mattermost-docker icon indicating copy to clipboard operation
mattermost-docker copied to clipboard

Provide tags on hub.docker.com with major version

Open melekhine opened this issue 7 years ago • 6 comments

Can we have a major stable version? I mean, when 5.7.2 comes out, can it be also tagged as 5.7 and just 5. To have a better lockup by major version in docker-compose.yml. So, it wouldn't be needed to edit a docker-compose.yml each time new minor versions come out.

Igor.

melekhine avatar Feb 15 '19 19:02 melekhine

I agree it could be a good idea, but I don't know if we can do this with the Docker Hub auto-build from the Github repository.

pichouk avatar Feb 16 '19 11:02 pichouk

Indeed it would be possible using a custom hook. I am building my docker images and tag it later as latest to ensure latest is always my latest build.

An example post_push hook is available in my hooks repository. If required, I can provide such a hook script to ensure tagging of new builds for different version numbers.

greatfireball avatar Feb 16 '19 20:02 greatfireball

@pichouk since docker 1.10 we can provide multiple image tags at build. Example: docker build -t mattermost-prod-app:5.7.2 -t mattermost-prod-app:5.7 -t mattermost-prod-app:5 -t mattermost-prod-app:latest .

I'm not familiar with Docker Hub, but it seems it could be done via tags and regexp. 2019-02-17 20 07 54

Hope this helps a little. Igor.

melekhine avatar Feb 17 '19 15:02 melekhine

Could be great, I don't have the access to configure Github/Docker Hub hooks for the repository. Maybe @cpanato can ?

pichouk avatar Feb 19 '19 18:02 pichouk

Just my two cents: In case that works, it will cause multiple build processes. Currently, I have some issues setting up my automated builds. I would go for the build hooks, which just adds additional tags to the last build.

greatfireball avatar Feb 21 '19 19:02 greatfireball

I can take a look at this

jaydeland avatar Oct 20 '19 00:10 jaydeland