I’m looking to automate always installing the latest available version of mongosh in a CI pipeline. I get that I can go to the downloads page here, pick the version, and the platform, and click “copy link”. That will give me a URL like this:
Well, what about when a new version comes out? I don’t want to have to update this URL in my CI pipeline every time a new version comes out. Is there a URL equivalent of this that I can use?:
I’m considering the distro package manager route, but Im trying to fit the mongosh install into an existing workflow that does a curl for the tarball, unzips it, and puts it in the PATH (among other things). So I’m trying to keep things consistent and distro-independent if I can.
A bit ugly but it works. A drawback here is that this is the .deb repo that I’m finding the available versions from. There’s not guarantee that all of the same versions will exist for the tarballs (although I would assume the same versions will almost always exist between .deb and tarball)
There really, really should be a ‘linux’ (or ‘tarball’ or whatever) directory at this level so that the tarballs can be reached programatically: