mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
[Windows] Refactor virtual-env image generation provisioners (#1288)
* refactor virtual-env image generation provisioners
This commit is contained in:
committed by
GitHub
parent
97e1907055
commit
21165eb578
33
images/win/scripts/Installers/Update-DockerImages.ps1
Normal file
33
images/win/scripts/Installers/Update-DockerImages.ps1
Normal file
@@ -0,0 +1,33 @@
|
||||
################################################################################
|
||||
## File: Update-DockerImages.ps1
|
||||
## Desc: Pull some standard docker images.
|
||||
## Must be run after docker is installed.
|
||||
################################################################################
|
||||
|
||||
function DockerPull {
|
||||
Param ([string]$image)
|
||||
|
||||
Write-Host Installing $image ...
|
||||
docker pull $image
|
||||
|
||||
if (!$?) {
|
||||
Write-Host "Docker pull failed with a non-zero exit code"
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
|
||||
if (Test-IsWin16) {
|
||||
DockerPull mcr.microsoft.com/windows/servercore:ltsc2016
|
||||
DockerPull mcr.microsoft.com/windows/nanoserver:10.0.14393.953
|
||||
DockerPull mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2016
|
||||
DockerPull mcr.microsoft.com/dotnet/framework/runtime:4.8-windowsservercore-ltsc2016
|
||||
}
|
||||
|
||||
if (Test-IsWin19) {
|
||||
DockerPull mcr.microsoft.com/windows/servercore:ltsc2019
|
||||
DockerPull mcr.microsoft.com/windows/nanoserver:1809
|
||||
DockerPull mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2019
|
||||
DockerPull mcr.microsoft.com/dotnet/framework/runtime:4.8-windowsservercore-ltsc2019
|
||||
}
|
||||
|
||||
DockerPull microsoft/aspnetcore-build:1.0-2.0
|
||||
Reference in New Issue
Block a user