Skip to content

Commit

Permalink
Merge pull request #24653 from Luap99/win-installer
Browse files Browse the repository at this point in the history
win-installer test: revert to v5.3.0
  • Loading branch information
openshift-merge-bot[bot] authored Nov 22, 2024
2 parents d85ac93 + 916b805 commit 0768328
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions contrib/win-installer/test-installer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,11 @@ function Remove-Podman-Machine-Conf {
}

function Get-Latest-Podman-Setup-From-GitHub {
Write-Host "Downloading the latest Podman windows setup from GitHub..."
$apiUrl = "https://api.github.com/repos/containers/podman/releases/latest"
$response = Invoke-RestMethod -Uri $apiUrl -Headers @{"User-Agent"="PowerShell"} -ErrorAction Stop
$downloadUrl = $response.assets[0].browser_download_url
$tag = "5.3.0"
Write-Host "Downloading the $tag Podman windows setup from GitHub..."
$downloadUrl = "https://github.com/containers/podman/releases/download/v$tag/podman-$tag-setup.exe"
Write-Host "Downloading URL: $downloadUrl"
$latestTag = $response.tag_name
$destinationPath = "$PSScriptRoot\podman-$latestTag-setup.exe"
$destinationPath = "$PSScriptRoot\podman-$tag-setup.exe"
Write-Host "Destination Path: $destinationPath"
Invoke-WebRequest -Uri $downloadUrl -OutFile $destinationPath
Write-Host "Command completed successfully!`n"
Expand Down

0 comments on commit 0768328

Please sign in to comment.