fix: gen-migrations workflow
Some checks failed
gen-migrations / gen-migrations (push) Failing after 9s
Some checks failed
gen-migrations / gen-migrations (push) Failing after 9s
This commit is contained in:
parent
c3109217bb
commit
053511dc77
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user