fix: gen-migrations workflow
Some checks failed
gen-migrations / gen-migrations (push) Failing after 7s
Some checks failed
gen-migrations / gen-migrations (push) Failing after 7s
This commit is contained in:
parent
6b1557ab76
commit
c3109217bb
@ -51,3 +51,5 @@ 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 rm -vsf "$base_or_head"
|
||||
|
@ -24,6 +24,7 @@ if [[ -z "$base" ]] || [[ -z "$head" ]]; then
|
||||
fi
|
||||
|
||||
if [[ ! -f "$migration" ]]; then
|
||||
docker compose down -v
|
||||
./scripts/build.sh base "$base" 1>&2 || (echo "base failed to build" && exit 1)
|
||||
./scripts/build.sh head "$head" 1>&2 || (echo "head failed to build" && exit 1)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user