fix: gen-migrations workflow
Some checks failed
gen-migrations / gen-migrations (push) Failing after 9s

This commit is contained in:
Orion Kindel
2023-07-19 21:02:24 -05:00
parent 72e1e0ef09
commit 5521049c27
2 changed files with 4 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ services:
image: 'postgres:15.3-bullseye'
env_file: ['./.env.schema']
volumes: ['/var/run/postgresql:/var/run/postgresql']
command: '-h localhost -p 5432'
command: '-p 5432'
head:
container_name: 'head'
network_mode: 'host'
@@ -15,4 +15,4 @@ services:
restart: 'always'
env_file: ['./.env.schema']
volumes: ['/var/run/postgresql:/var/run/postgresql']
command: '-h localhost -p 5433'
command: '-p 5433'

View File

@@ -21,7 +21,7 @@ db() {
}
isready() {
until psql $(db postgres) -c "select 1"; do true; done;
until psql $(db postgres) -c "select 1" &>/dev/null; do true; done;
}
initdb() {
@@ -32,7 +32,7 @@ initdb() {
}
if [[ "$rev" = "empty" ]]; then
docker compose up -d "$base_or_head" 1>/dev/null
docker compose up -d "$base_or_head"
isready
initdb
exit 0