Commit d7fa585d authored by Dan Davison's avatar Dan Davison

Merge branch 'fix-wait-for-dind' into 'master'

Refactor docker-in-docker wait

See merge request gitlab-org/gitlab!62391
parents 78afa462 3339052d
......@@ -31,7 +31,13 @@ module QA
DOCKER_TLS_VERIFY: 1
DOCKER_CERT_PATH: "$DOCKER_TLS_CERTDIR/client"
before_script:
- until docker info; do sleep 1; done
- |
echo "Waiting for docker to start..."
for i in $(seq 1 30)
do
docker info && break
sleep 1s
done
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t $IMAGE_TAG .
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment