Skip to content

Commit 90d22d5

Browse files
committed
ci: ensure docker
1 parent 6120318 commit 90d22d5

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/release_docker_win.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,22 @@ jobs:
7070
echo "windows_version=$windowsVersion" >> $env:GITHUB_OUTPUT
7171
echo "is_latest=$isLatest" >> $env:GITHUB_OUTPUT
7272
73+
- name: Ensure Docker Engine is started
74+
shell: pwsh
75+
run: |
76+
$service = Get-Service -Name docker -ErrorAction SilentlyContinue
77+
if ($null -ne $service -and $service.Status -ne 'Running') {
78+
Write-Host "Starting Docker service..."
79+
Start-Service docker
80+
}
81+
$retries = 0
82+
while (!(Test-Path \\.\pipe\docker_engine) -and $retries -lt 15) {
83+
Write-Host "Waiting for docker pipe..."
84+
Start-Sleep -Seconds 2
85+
$retries++
86+
}
87+
docker info
88+
7389
- name: Build Docker tags
7490
id: meta
7591
shell: pwsh

0 commit comments

Comments
 (0)