mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
Merge pull request #5217 from alepauly/ale/kubFix
Fix match regex in Kubernetes tools downloads.
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
Write-Host "Install Kind"
|
Write-Host "Install Kind"
|
||||||
# Choco installation can't be used because it depends on docker-desktop
|
# Choco installation can't be used because it depends on docker-desktop
|
||||||
$url = 'https://api.github.com/repos/kubernetes-sigs/kind/releases/latest'
|
$url = 'https://api.github.com/repos/kubernetes-sigs/kind/releases/latest'
|
||||||
[System.String] $kindDownloadLink = (Invoke-RestMethod -Uri $url).assets.browser_download_url -match "kind-windows-amd64"
|
[System.String] $kindDownloadLink = (Invoke-RestMethod -Uri $url).assets.browser_download_url -match "kind-windows-amd64$"
|
||||||
$destFilePath = "C:\ProgramData\kind"
|
$destFilePath = "C:\ProgramData\kind"
|
||||||
$null = New-Item -Path $destFilePath -ItemType Directory -Force
|
$null = New-Item -Path $destFilePath -ItemType Directory -Force
|
||||||
Start-DownloadWithRetry -Url $kindDownloadLink -Name "kind.exe" -DownloadPath $destFilePath
|
Start-DownloadWithRetry -Url $kindDownloadLink -Name "kind.exe" -DownloadPath $destFilePath
|
||||||
|
|||||||
Reference in New Issue
Block a user