fix (?) workflow

This commit is contained in:
Yannick 2025-06-18 12:41:04 +02:00
commit c7ffe2ccdc

View file

@ -7,7 +7,7 @@ on:
jobs:
build:
runs-on: alpine-latest
runs-on: docker:rc-cli
steps:
- name: Install dependencies for other steps
@ -37,29 +37,6 @@ jobs:
echo "update=false" >> "$GITHUB_OUTPUT"
fi
- name: Install Docker
if: steps.compare.outputs.update == 'true'
run: |
apk add --no-cache docker bash
- name: Start Docker daemon
if: steps.compare.outputs.update == 'true'
run: |
dockerd & # start Docker daemon in background
# Wait until Docker daemon is ready (max 30 seconds)
timeout=30
while ! docker info >/dev/null 2>&1; do
if [ $timeout -le 0 ]; then
echo "Docker daemon failed to start."
exit 1
fi
echo "Waiting for Docker daemon..."
sleep 3
timeout=$((timeout - 3))
done
- name: Build and push Docker image
if: steps.compare.outputs.update == 'true'
run: |