From 0c62f2474f4caee78516b1e2ff32d5fa3c4b2249 Mon Sep 17 00:00:00 2001 From: Joao P Dubas Date: Fri, 22 Apr 2022 11:08:14 +0000 Subject: [PATCH] chore: check if postgres is ready in CI --- .drone.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.drone.yml b/.drone.yml index 33659bc..5883fa8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,6 +10,14 @@ trigger: - pull_request steps: + - name: database healthcheck + image: 'postgres:14.2-alpine' + environment: + PGUSER: postgres + PGPASSWORD: postgres + PGHOST: db + commands: + - while ! pg_isready; do sleep 1; done - name: test image: 'elixir:1.13.4' environemnt: