- Notifications
You must be signed in to change notification settings - Fork928
Description
Part ofStable Releases.
Overview
We're bisecting our releases into two channels: "stable" and "mainline."
mainline
: points to true latest releasestable
: points to latest release that's been fielded for at least 2 weeks
By default, ourinstall.sh
script will point to the mainline release, similar to the current behavior. Additionally, users can specify a--stable
flag to use the latest release markedstable
.
This allows customers/community members either: continue using install.sh as is and always get the latest version of Coder, or safely install the release that's behind, but stable.
The way we've discussed doing this is by putting a variable ininstall.sh
like
CODER_MAINLINE_VERSION=v2.9.0
Since thecoder/coder/releases/latest
will always find the release with thelatest
tag, which will always be the latest stable release.
Example usage (2.9.1=mainline, 2.8.4=stable):
- Install mainline:
curl -fsSL https://coder.com/install.sh | sh
→ 2.9.1 - Install stable:
curl -fsSL https://coder.com/install.sh | sh -s -- --stable
→ 2.8.4
Note
It seems like we've implemented the inverse of this in the past:
https://github.com/coder/coder/blame/d2a74cf547ddb3f66b3a4f97007037fb7ecce166/install.sh#L91-L101C2
We may be able to recycle that regex.
Requirements
install script stores latest mainline release version
CODER_MAINLINE_VERSION=v2.9.0
--stable
makes install script point to thelatest
release in Github
https://github.com/coder/coder/releases/latestDefault usage now points to mainline (previously called "edge")
Introduces a new version advisory message:
When installing mainline:
Coder mainline release v2.9.0 installed. To install our stable release (v2.8.3), use the --stable flag. See our releases documentation or Github for more information on versioning.
When installing stable:
Coder stable release v2.8.3 installed. See our releases documentation or Github for more information on versioning.
Would be nice to have a link to the new releases page in the docs in that advisory.