‘get istio version automatically

pull/67/head
lufever 5 years ago
parent ec03c0d8a6
commit 20989fab18

@ -1,10 +1,10 @@
param(
[string] $IstioVersion = "1.0.3"
[string] $IstioVersion = $(Invoke-RestMethod "https://api.github.com/repos/istio/istio/releases")[0].tag_name
)
$url = "https://github.com/istio/istio/releases/download/$($IstioVersion)/istio-$($IstioVersion)-win.zip"
$Path = Get-Location
$output = [IO.Path]::Combine($Path, "istio-$($IstioVersion)-win.zip¡±)
$output = [IO.Path]::Combine($Path, "istio-$($IstioVersion)-win.zip")
Write-Host "Downloading Istio from $url to path " $Path -ForegroundColor Green

Loading…
Cancel
Save