mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
add helm istallation
This commit is contained in:
@@ -14,3 +14,7 @@ Install-Package -Name docker -ProviderName DockerMsftProvider -Force
|
|||||||
Start-Service docker
|
Start-Service docker
|
||||||
|
|
||||||
choco install docker-compose -y
|
choco install docker-compose -y
|
||||||
|
|
||||||
|
# Install helm
|
||||||
|
Write-Host "Install Helm"
|
||||||
|
choco install kubernetes-helm
|
||||||
@@ -44,3 +44,29 @@ _Environment:_
|
|||||||
"@
|
"@
|
||||||
|
|
||||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||||
|
|
||||||
|
# Validate helm
|
||||||
|
if (Get-Command -Name 'helm')
|
||||||
|
{
|
||||||
|
Write-Host "helm on path"
|
||||||
|
Write-Host "Full version:"
|
||||||
|
helm version
|
||||||
|
Write-Host "Short version:"
|
||||||
|
helm version --short
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Write-Host 'helm is not on path'
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
$version = $(helm version --short)
|
||||||
|
$SoftwareName = "Helm"
|
||||||
|
|
||||||
|
$Description = @"
|
||||||
|
_Version:_ $version<br/>
|
||||||
|
_Environment:_
|
||||||
|
* PATH: contains location of helm
|
||||||
|
"@
|
||||||
|
|
||||||
|
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||||
Reference in New Issue
Block a user