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

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

View File

@ -8,6 +8,9 @@ source ./scripts/env.sh ./.env.schema
base_or_head="$1"
rev="$2"
docker compose kill "$base_or_head"
docker compose rm -vsf "$base_or_head"
if [[ "$base_or_head" = "head" ]]; then
port=5433
else
@ -49,6 +52,3 @@ docker compose up -d "$base_or_head"
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"