fix: gen-migrations workflow
Some checks failed
gen-migrations / gen-migrations (push) Failing after 9s
Some checks failed
gen-migrations / gen-migrations (push) Failing after 9s
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user