fix: gen-migrations workflow
All checks were successful
gen-migrations / gen-migrations (push) Successful in 8m34s

This commit is contained in:
Orion Kindel 2023-07-20 00:51:24 -05:00
parent ab4b8e0bd3
commit 19fc1816ff
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 --wait -d "$base_or_head"
docker compose up --wait --wait-timeout 30 -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 --wait -d "$base_or_head"
docker compose up --wait --wait-timeout 30 -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)