fix: gen-migrations workflow
Some checks failed
gen-migrations / gen-migrations (push) Failing after 7s
Some checks failed
gen-migrations / gen-migrations (push) Failing after 7s
This commit is contained in:
parent
7825f89f3a
commit
994fa9d093
@ -14,12 +14,13 @@ else
|
||||
port=5432
|
||||
fi
|
||||
|
||||
docker compose rm -vsf "$base_or_head"
|
||||
|
||||
db() {
|
||||
echo -n "postgresql:///$1?port=$port&user=$POSTGRES_USER&password=$POSTGRES_PASSWORD"
|
||||
}
|
||||
|
||||
docker compose rm -vsf "$base_or_head"
|
||||
until ! psql $(db postgres) -c "select 1" &>/dev/null; do true; done;
|
||||
|
||||
isready() {
|
||||
until psql $(db postgres) -c "select 1" &>/dev/null; do true; done;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user