CircleCI-Public / cimg-node

The CircleCI Node.js Docker Convenience Image.
https://circleci.com/developer/images/image/cimg/node
MIT License
41 stars 33 forks source link

Mutable tag request :stable #16

Closed excenter closed 4 years ago

excenter commented 5 years ago

:<node-version>-stable is great if I want to lock to a specific version of node, but I'd really like to auto-select the stable version and revision of node a la nvm install stable THX

iynere commented 5 years ago

@excenter i'd recommend using our node orb, it will automatically install the latest stable release:

https://circleci.com/orbs/registry/orb/circleci/node#commands-install-node

i think our goal with these images is to be very explicit about versioning

that said, it's also worth noting that all of our other new images' -node variants use n as a Node version manager, so you might try using cimg/base:stable-node, which uses n to install the latest LTS release of Node by default (& then you can use n to switch to any other Node version at runtime, if you so desire):

https://github.com/circleci-public/cimg-base#stable-stable-node

FelicianoTech commented 4 years ago

This image will have aliases shortly. It won't be "stable" however.

Following how Node.js refers to their own release on their websites, there will be two aliases available. "current" and "lts".