Please tag pushed images using semver
It seems the postgres-backup-s3 image is only tagged as 'latest' https://hub.docker.com/r/schickling/postgres-backup-s3/tags/
I'd like to use this image in my stack but as the 'latest' tag is effectively a moving target it's possible a future push could break my current setup. Being able to pin to a specific tag would be safer.
That's a good point. Are there any easy ways to tag images based on the current way how this repository is structured?
Normally you'd tag the repo and push the image with the same tag. Something like:
docker build -t schickling/postgres-backup-s3:$(git describe --abbrev=0 --tags) .
However, since you've got several images in this repo that pattern won't work. Would be good if you split each into their own repo. Would make it easier for people to fork/contribute.
Suggestion 1) Hmm I'm trying to avoid any repetitive manual steps if possible. Suggestion 2) Splitting up the repositories decreases visibility/discoverability of the images so I try to avoid this if possible.
What I'm currently thinking of is a CI script which somehow builds & tags the images individually. However I don't have the time right now to look into this. I'd be happy to merge any PRs which would make this easier.
Well ultimately it's up to you. Personally I think one-repository-per-image is a much better approach, for a number of reasons:
- Repo tags = Image tags
- Bugs/Issues easier to track
- Easier for people to fork/contribute
- Obvious mapping of image to repo when browsing docker hub (this is how I 'discovered' postgres-backup-s3)
Anyway... I won't keep going on about it. I hope you reconsider. Regardless I may fork to work around this problem myself as I can't risk a push to 'latest' breaking my deployments.