diff --git a/.forgejo/workflows/base.yml b/.forgejo/workflows/base.yml index 3f5f5f1..85b339c 100644 --- a/.forgejo/workflows/base.yml +++ b/.forgejo/workflows/base.yml @@ -10,17 +10,21 @@ on: jobs: build_act: runs-on: "docker" - container: - image: docker:27.5.1-alpine3.21 env: DOCKER_HOST: tcp://docker:2375 - services: - docker: - image: docker:27.5.1-dind-alpine3.21 - options: --privileged - env: - DOCKER_TLS_CERTDIR: "" steps: + - name: Wait for Docker daemon + run: | + timeout=300 # Set a timeout value in seconds + until docker info; do + echo "Waiting for Docker daemon to start..." + sleep 5 + timeout=$((timeout-5)) + if [ $timeout -le 0 ]; then + echo "Timeout waiting for Docker daemon to start." + exit 1 + fi + done - name: A run: | apk add net-tools