mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-06-27 16:35:58 +00:00
ci: Wait for docker
This commit is contained in:
parent
9d0f17811f
commit
4a91e35ada
1 changed files with 18 additions and 0 deletions
18
.github/workflows/windows-tests.yml
vendored
18
.github/workflows/windows-tests.yml
vendored
|
@ -46,6 +46,24 @@ jobs:
|
||||||
apk --update add --no-cache docker curl
|
apk --update add --no-cache docker curl
|
||||||
rc-update add docker default
|
rc-update add docker default
|
||||||
|
|
||||||
|
# Check if Docker is already running, if not start it and wait for it to be ready
|
||||||
|
if ! pgrep -x dockerd > /dev/null; then
|
||||||
|
service docker start
|
||||||
|
# Wait for Docker to be ready
|
||||||
|
echo "Waiting for Docker to be ready..."
|
||||||
|
timeout=30
|
||||||
|
for i in $(seq 1 $timeout); do
|
||||||
|
if docker info > /dev/null 2>&1; then
|
||||||
|
echo "Docker is ready!"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
echo "Waiting for Docker to be ready... ($i/$timeout)"
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
else
|
||||||
|
echo "Docker is ready!"
|
||||||
|
fi
|
||||||
|
|
||||||
- name: WSL - Start Forgejo Server
|
- name: WSL - Start Forgejo Server
|
||||||
shell: wsl-bash {0}
|
shell: wsl-bash {0}
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue