Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add edge rad CLI install (radius-project#6899)
# Description * Updated `install.sh` to support `edge` as a valid argument and install using oras CLI if available * Updated `install.ps1` to support `edge` as a valid argument and install using oras CLI if available * Removing isReleaseAvailable (unused) ## Type of change <!-- Please select **one** of the following options that describes your change and delete the others. Clearly identifying the type of change you are making will help us review your PR faster, and is used in authoring release notes. If you are making a bug fix or functionality change to Radius and do not have an associated issue link please create one now. --> - This pull request fixes a bug in Radius and has an approved issue (issue link required). - This pull request adds or changes features of Radius and has an approved issue (issue link required). - This pull request is a minor refactor, code cleanup, test improvement, or other maintenance task and doesn't change the functionality of Radius (issue link optional). <!-- Please update the following to link the associated issue. This is required for some kinds of changes (see above). --> Fixes: #issue_number ## Auto-generated summary <!-- GitHub Copilot for docs will auto-generate a summary of the PR --> <!-- copilot:all --> ### <samp>🤖[[deprecated]](https://githubnext.com/copilot-for-prs-sunset) Generated by Copilot at 62a66c5</samp> ### Summary 📦🚀🌐 <!-- 1. 📦 This emoji can be used to indicate that the install script was updated to support different packaging or distribution options for the `radius` CLI, such as stable or edge versions. 2. 🚀 This emoji can be used to indicate that the edge version of the `radius` CLI is downloaded from the GitHub Container Registry, which is a fast and reliable way to deliver container images and artifacts. 3. 🌐 This emoji can be used to indicate that the stable version of the `radius` CLI is downloaded from the GitHub Releases page, which is a web-based platform for hosting and managing software releases. --> Add support for installing edge version of `radius` CLI. Update `deploy/install.sh` to use `oras` or `curl`/`wget` depending on the version. > _Sing, O Muse, of the skillful `radius` CLI_ > _That lets the heroes deploy their code with ease_ > _And how its install script was wisely enhanced_ > _To offer two choices of version in advance_ ### Walkthrough * Modify `downloadFile` function to accept `RELEASE_TAG` parameter and download either stable or edge version of Radius CLI ([link](https://github.com/radius-project/radius/pull/6899/files?diff=unified&w=0#diff-ed1191c237ea4ba8f2011568f4ed0208c8d0ca36cbde1285828a61b4ff2128b4L113-R115), [link](https://github.com/radius-project/radius/pull/6899/files?diff=unified&w=0#diff-ed1191c237ea4ba8f2011568f4ed0208c8d0ca36cbde1285828a61b4ff2128b4L123-R141)) * Delete `isReleaseAvailable` function as it is obsolete ([link](https://github.com/radius-project/radius/pull/6899/files?diff=unified&w=0#diff-ed1191c237ea4ba8f2011568f4ed0208c8d0ca36cbde1285828a61b4ff2128b4L136-L157)) * Update `getLatestReleaseTag` function to return "edge" when passed as argument ([link](https://github.com/radius-project/radius/pull/6899/files?diff=unified&w=0#diff-ed1191c237ea4ba8f2011568f4ed0208c8d0ca36cbde1285828a61b4ff2128b4R218-R219)) --------- Signed-off-by: willdavsmith <willdavsmith@gmail.com> Signed-off-by: Will Smith <willdavsmith@gmail.com> Co-authored-by: Aaron Crawfis <Aaron.Crawfis@microsoft.com>
- Loading branch information