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

This commit is contained in:
Orion Kindel 2023-07-19 20:54:14 -05:00
parent cda6320977
commit 72e1e0ef09
Signed by untrusted user who does not match committer: orion
GPG Key ID: 6D4165AE4C928719

View File

@ -15,14 +15,13 @@ else
fi fi
docker compose rm -vsf "$base_or_head" docker compose rm -vsf "$base_or_head"
until ! pg_isready -q -p "$port"; do true; done;
db() { db() {
echo -n "postgresql:///$1?port=$port&user=$POSTGRES_USER&password=$POSTGRES_PASSWORD" echo -n "postgresql:///$1?port=$port&user=$POSTGRES_USER&password=$POSTGRES_PASSWORD"
} }
isready() { isready() {
until pg_isready -q -p "$port"; do true; done; until psql $(db postgres) -c "select 1"; do true; done;
} }
initdb() { initdb() {