mirror of
https://github.com/containers/podman.git
synced 2025-05-20 00:27:03 +08:00
win-installer test: revert to v5.3.0
Do not pull from a moving target, use a defined version so updates must happen in a PR and do not break others. Signed-off-by: Paul Holzinger <pholzing@redhat.com> (cherry picked from commit 916b805f9776d721aaba9972685d786d0e48624a) Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -201,13 +201,11 @@ function Remove-Podman-Machine-Conf {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function Get-Latest-Podman-Setup-From-GitHub {
|
function Get-Latest-Podman-Setup-From-GitHub {
|
||||||
Write-Host "Downloading the latest Podman windows setup from GitHub..."
|
$tag = "5.3.0"
|
||||||
$apiUrl = "https://api.github.com/repos/containers/podman/releases/latest"
|
Write-Host "Downloading the $tag Podman windows setup from GitHub..."
|
||||||
$response = Invoke-RestMethod -Uri $apiUrl -Headers @{"User-Agent"="PowerShell"} -ErrorAction Stop
|
$downloadUrl = "https://github.com/containers/podman/releases/download/v$tag/podman-$tag-setup.exe"
|
||||||
$downloadUrl = $response.assets[0].browser_download_url
|
|
||||||
Write-Host "Downloading URL: $downloadUrl"
|
Write-Host "Downloading URL: $downloadUrl"
|
||||||
$latestTag = $response.tag_name
|
$destinationPath = "$PSScriptRoot\podman-$tag-setup.exe"
|
||||||
$destinationPath = "$PSScriptRoot\podman-$latestTag-setup.exe"
|
|
||||||
Write-Host "Destination Path: $destinationPath"
|
Write-Host "Destination Path: $destinationPath"
|
||||||
Invoke-WebRequest -Uri $downloadUrl -OutFile $destinationPath
|
Invoke-WebRequest -Uri $downloadUrl -OutFile $destinationPath
|
||||||
Write-Host "Command completed successfully!`n"
|
Write-Host "Command completed successfully!`n"
|
||||||
|
Reference in New Issue
Block a user