chore: check if postgres is ready in CI
This commit is contained in:
parent
38d2ce5fe8
commit
0c62f2474f
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user