From 6569948f0d876593a3625de0df77a6014bc0739a Mon Sep 17 00:00:00 2001 From: Snoweuph Date: Wed, 29 Jan 2025 19:59:25 +0100 Subject: [PATCH] Move Setup --- .forgejo/workflows/base.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) 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