fix: gen-migrations workflow
Some checks reported warnings
gen-migrations / gen-migrations (push) Has been cancelled

This commit is contained in:
Orion Kindel 2023-07-20 00:36:56 -05:00
parent 3a14f001f6
commit d0526f0426
Signed by untrusted user who does not match committer: orion
GPG Key ID: 6D4165AE4C928719

View File

@ -26,7 +26,7 @@ initdb() {
}
if [[ "$rev" = "empty" ]]; then
docker compose up -d "$base_or_head"
docker compose up --wait -d "$base_or_head"
initdb
exit 0
fi
@ -39,7 +39,7 @@ cp docker-compose.yml "./$base_or_head/docker-compose.yml"
cp .env.schema "./$base_or_head/.env.schema"
cd "./$base_or_head"
docker compose up -d "$base_or_head"
docker compose up --wait -d "$base_or_head"
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)