mirror of
https://github.com/Azure/setup-helm.git
synced 2025-11-07 21:16:57 +00:00
- Support arm64 on linux and mac
- Update Helm3 to 3.7.2 Signed-off-by: ajayk <ajaykemparaj@gmail.com>
This commit is contained in:
parent
7e3c8fd604
commit
7b5e0dcf49
1 changed files with 18 additions and 2 deletions
20
src/run.ts
20
src/run.ts
|
|
@ -14,7 +14,7 @@ import { graphql } from '@octokit/graphql';
|
||||||
|
|
||||||
const helmToolName = 'helm';
|
const helmToolName = 'helm';
|
||||||
const stableHelmVersion = 'v3.2.1';
|
const stableHelmVersion = 'v3.2.1';
|
||||||
const stableHelm3Version = 'v3.5.3';
|
const stableHelm3Version = 'v3.7.2';
|
||||||
const stableHelm2Version = 'v2.17.0';
|
const stableHelm2Version = 'v2.17.0';
|
||||||
const LATEST_HELM2_VERSION = '2.*';
|
const LATEST_HELM2_VERSION = '2.*';
|
||||||
const LATEST_HELM3_VERSION = '3.*';
|
const LATEST_HELM3_VERSION = '3.*';
|
||||||
|
|
@ -30,10 +30,26 @@ export function getExecutableExtension(): string {
|
||||||
export function getHelmDownloadURL(version: string): string {
|
export function getHelmDownloadURL(version: string): string {
|
||||||
switch (os.type()) {
|
switch (os.type()) {
|
||||||
case 'Linux':
|
case 'Linux':
|
||||||
|
if (os.arch() === 'x64') {
|
||||||
|
return util.format('https://get.helm.sh/helm-%s-linux-amd64.tar.gz', version);
|
||||||
|
}
|
||||||
|
else if(os.arch() === 'arm') {
|
||||||
|
return util.format('https://get.helm.sh/helm-%s-linux-arm.tar.gz', version);
|
||||||
|
}
|
||||||
|
else if(os.arch() === 'arm64') {
|
||||||
|
return util.format('https://get.helm.sh/helm-%s-linux-arm64.tar.gz', version);
|
||||||
|
}
|
||||||
return util.format('https://get.helm.sh/helm-%s-linux-amd64.zip', version);
|
return util.format('https://get.helm.sh/helm-%s-linux-amd64.zip', version);
|
||||||
|
|
||||||
case 'Darwin':
|
case 'Darwin':
|
||||||
return util.format('https://get.helm.sh/helm-%s-darwin-amd64.zip', version);
|
if(os.arch() === 'x64') {
|
||||||
|
return util.format('https://get.helm.sh/helm-%s-darwin-amd64.zip', version);
|
||||||
|
}
|
||||||
|
else if(os.arch() === 'arm64') {
|
||||||
|
return util.format('https://get.helm.sh/helm-%s-darwin-arm64.zip', version);
|
||||||
|
|
||||||
|
}
|
||||||
|
return util.format('https://get.helm.sh/helm-%s-darwin-amd64.tar.gz', version);
|
||||||
|
|
||||||
case 'Windows_NT':
|
case 'Windows_NT':
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue