fix (?) workflow
This commit is contained in:
parent
94e64ac368
commit
c7ffe2ccdc
1 changed files with 1 additions and 24 deletions
|
@ -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: |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue