updating gitlab.yaml to wait for docker socket to be ready

This commit is contained in:
Luke 2021-10-22 18:33:46 +00:00
parent 2766a84c11
commit d99e71bfbb

View File

@ -14,6 +14,8 @@ stages:
build_and_push_container:
stage: deploy
script:
- echo "Wait for Docker daemon at tcp://localhost:2375"
- while ! nc -z localhost 2375; do sleep 0.1; done # Wait until docker socket is available
- docker login -u ldooks -p $DOCKER_ACCESS_TOKEN
- docker build -t ldooks/dragon-bot:latest .
- docker push ldooks/dragon-bot:latest