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

This commit is contained in:
Orion Kindel 2023-07-20 00:00:27 -05:00
parent c3109217bb
commit 053511dc77
Signed by untrusted user who does not match committer: orion
GPG Key ID: 6D4165AE4C928719

View File

@ -18,8 +18,6 @@ db() {
echo -n "postgresql:///$1?port=$port&user=$POSTGRES_USER&password=$POSTGRES_PASSWORD"
}
docker compose rm -vsf "$base_or_head"
isready() {
until psql $(db postgres) -c "select 1" &>/dev/null; do true; done;
}
@ -52,4 +50,5 @@ isready
initdb || (docker compose logs "$base_or_head" && exit 1)
ls ./schema/ | xargs -I{} bash -c "set -e; $(declare -f query_file); query_file \"$(db dnim)\" ./schema/{}" || (docker compose logs "$base_or_head" && exit 1)
docker compose kill "$base_or_head"
docker compose rm -vsf "$base_or_head"