parent
416988c214
commit
4e116f660e
1 changed files with 18 additions and 17 deletions
|
|
@ -13,23 +13,24 @@ env:
|
||||||
# Set this to the public IP or hostname of your registry,
|
# Set this to the public IP or hostname of your registry,
|
||||||
# whichever you use to reach it from your desktop/laptop
|
# whichever you use to reach it from your desktop/laptop
|
||||||
FORGEJO_HOST: code.zeidler.dev
|
FORGEJO_HOST: code.zeidler.dev
|
||||||
build:
|
jobs:
|
||||||
runs-on: docker
|
build:
|
||||||
container:
|
runs-on: docker
|
||||||
image: catthehacker/ubuntu:act-latest
|
container:
|
||||||
steps:
|
image: catthehacker/ubuntu:act-latest
|
||||||
- name: Wait for Docker daemon
|
steps:
|
||||||
run: |
|
- name: Wait for Docker daemon
|
||||||
timeout=300 # Set a timeout value in seconds
|
run: |
|
||||||
until docker info; do
|
timeout=300 # Set a timeout value in seconds
|
||||||
echo "Waiting for Docker daemon to start..."
|
until docker info; do
|
||||||
sleep 5
|
echo "Waiting for Docker daemon to start..."
|
||||||
timeout=$((timeout-5))
|
sleep 5
|
||||||
if [ $timeout -le 0 ]; then
|
timeout=$((timeout-5))
|
||||||
echo "Timeout waiting for Docker daemon to start."
|
if [ $timeout -le 0 ]; then
|
||||||
exit 1
|
echo "Timeout waiting for Docker daemon to start."
|
||||||
fi
|
exit 1
|
||||||
done
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
# jobs:
|
# jobs:
|
||||||
# build-and-push:
|
# build-and-push:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue