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

This commit is contained in:
Orion Kindel
2023-07-19 22:30:23 -05:00
parent 7825f89f3a
commit 994fa9d093

View File

@@ -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;
}