Skip to content

Commit

Permalink
Merge pull request #616 from g3rhard/podman
Browse files Browse the repository at this point in the history
Add Podman
  • Loading branch information
aaronparker authored Feb 10, 2024
2 parents 28f5349 + 2dd61db commit 39997c1
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/mkdocs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
key: ${{ github.ref }}
path: .cache
Expand Down
27 changes: 27 additions & 0 deletions Evergreen/Apps/Get-Podman.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Function Get-Podman {
<#
.SYNOPSIS
Returns the available Podman versions.
.NOTES
Author: Kirill Trofimov
#>
[OutputType([System.Management.Automation.PSObject])]
[CmdletBinding(SupportsShouldProcess = $False)]
param (
[Parameter(Mandatory = $False, Position = 0)]
[ValidateNotNull()]
[System.Management.Automation.PSObject]
$res = (Get-FunctionResource -AppName ("$($MyInvocation.MyCommand)".Split("-"))[1])
)

# Pass the repo releases API URL and return a formatted object
$params = @{
Uri = $res.Get.Uri
MatchVersion = $res.Get.MatchVersion
Filter = $res.Get.MatchFileTypes
}
$object = Get-GitHubRepoRelease @params

Write-Output -InputObject $object
}
20 changes: 20 additions & 0 deletions Evergreen/Manifests/Podman.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"Name": "Podman",
"Source": "https://github.com/containers/podman",
"Get": {
"Uri": "https://api.github.com/repos/containers/podman/releases/latest",
"MatchVersion": "(\\d+(\\.\\d+){1,4}).*",
"MatchFileTypes": "\\.exe$"
},
"Install": {
"Setup": "podman-*.exe",
"Physical": {
"Arguments": "/install /quiet /norestart",
"PostInstall": []
},
"Virtual": {
"Arguments": "",
"PostInstall": []
}
}
}

0 comments on commit 39997c1

Please sign in to comment.