Commit 3339052d authored by Sofia Vistas's avatar Sofia Vistas

Refactor docker-in-docker wait

parent 9fd32bec
......@@ -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