From ab6425ee5126d307c7ce0a4ebde5befc53510364 Mon Sep 17 00:00:00 2001 From: Ruben van der Linde Date: Mon, 23 Dec 2019 14:00:05 +0100 Subject: [PATCH] Added sleep before the database check --- .github/workflows/dockerimage.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.yml index 7a602d28..56f626c2 100644 --- a/.github/workflows/dockerimage.yml +++ b/.github/workflows/dockerimage.yml @@ -53,7 +53,7 @@ jobs: run: docker-compose build --pull --build-arg APP_ENV=$APP_ENV --build-arg APP_BUILD=$APP_BUILD - name: Run the docker image run: docker-compose up -d - - name: Taking some sleep + - name: Taking some sleep (for containers to come up) run: sleep 200 - name: Check if all containers are running run: docker ps @@ -61,6 +61,8 @@ jobs: run: docker-compose logs - name: Database Update run: docker-compose exec -T php bin/console doctrine:schema:update --force + - name: Taking some more sleep (for database to be updated) + run: sleep 20 - name: Database Check run: docker-compose exec -T php bin/console doctrine:schema:validate - name: Security Checks