mirror of
https://github.com/actions/runner-images.git
synced 2026-01-10 04:35:12 +08:00
[Windows] Wait Containers installation feature (#4720)
This commit is contained in:
committed by
GitHub
parent
211e6f3c29
commit
ea705c4d63
@@ -140,11 +140,11 @@
|
||||
{
|
||||
"type": "windows-restart",
|
||||
"check_registry": true,
|
||||
"restart_check_command": "powershell -command \"& {while ( (Get-WindowsOptionalFeature -Online -FeatureName Containers -ErrorAction SilentlyContinue).State -ne 'Enabled' ) { Start-Sleep 30; Write-Output 'InProgress' }}\"",
|
||||
"restart_timeout": "10m"
|
||||
},
|
||||
{
|
||||
"type": "powershell",
|
||||
"pause_before": "2m",
|
||||
"scripts": [
|
||||
"{{ template_dir }}/scripts/Installers/Install-Docker.ps1",
|
||||
"{{ template_dir }}/scripts/Installers/Install-PowershellCore.ps1"
|
||||
|
||||
Reference in New Issue
Block a user