dtzar / helm-kubectl

Docker Hub image with helm and kubectl on top of alpine linux with bash
https://hub.docker.com/r/dtzar/helm-kubectl/
MIT License
365 stars 133 forks source link

Major or Minor version tags? #46

Closed mltsy closed 3 years ago

mltsy commented 4 years ago

Thanks for the great tool! This is not a big deal, but:

It would be great to add tags like "3.x" or "3.0" to Dockerhub so that I could pin the image to specific major or minor version without having to update it for every patch update.

I hadn't pinned it at all previously (so that I could benefit from updates), but then 3.0.0 was pushed and my CI broke (unknown flag: --name), so I'd like to pin it to a major version without having to update the tag for minor updates.

dtzar commented 4 years ago

There already is a 3.0.0 tag . Moving forward I will continue to use 3.x as "latest" also. Feel free to snap back to 2.x tags.

mltsy commented 4 years ago

Hmm... I may not have communicated what I was looking for clearly, because the 3.0.0 tag doesn't help with this.

Right now (as an example), I'd like to stick with the 2.x branch, but if helm releases minor and patch updates, it would be great to get those automatically without having to update the tag, but there is no tag for that (such as v2 or 2.x)

Or, as another example, when I'm ready to switch to 3.x, I'd like to be able to use a tag that will keep me up to date with minor updates (unlike the 3.0.0 tag, like latest), but not allow my build to automatically upgrade to 4.x when that is released (keep it on 3.x, unlike latest).

dtzar commented 4 years ago

Ah I see, makes sense. Not sure when I'll get to this.

mltsy commented 4 years ago

Here's an article with recommendations on semver tagging for docker images (although it's simple enough, so I'm sure you could figure this out yourself): https://medium.com/@mccode/using-semantic-versioning-for-docker-image-tags-dfde8be06699

gaby commented 4 years ago

@mltsy I will take a look into this. Currently Github provides actions that automate the process of semver tagging.

mltsy commented 4 years ago

Ooh, that's handy! That'd be great! 😄 🙏