[Windows] Install Docker-wincred (#4540)

* Add Docker WinCred

* fix getting docker url

* Use Expand-Archive instead of Extract-7Zip since 7zip is not installed yet
This commit is contained in:
Maxim Lobanov
2021-11-19 12:44:22 +01:00
committed by GitHub
parent f38b217469
commit d3a5bad25f
4 changed files with 17 additions and 0 deletions

View File

@@ -96,6 +96,7 @@ $toolsList = @(
(Get-CodeQLBundleVersion),
(Get-DockerVersion),
(Get-DockerComposeVersion),
(Get-DockerWincredVersion),
(Get-GHCVersion),
(Get-GitVersion),
(Get-GitLFSVersion),

View File

@@ -61,6 +61,11 @@ function Get-DockerComposeVersion {
return "Docker-compose $dockerComposeVersion"
}
function Get-DockerWincredVersion {
$dockerCredVersion = $(docker-credential-wincred version)
return "Docker-wincred $dockerCredVersion"
}
function Get-GitVersion {
$(git version) -match "git version (?<version>\d+\.\d+\.\d+)" | Out-Null
$gitVersion = $Matches.Version