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
6941558d66
commit
cda6320977
@ -15,25 +15,14 @@ else
|
||||
fi
|
||||
|
||||
docker compose rm -vsf "$base_or_head"
|
||||
until ! pg_isready -p "$port" 1>/dev/null; do true; done;
|
||||
until ! pg_isready -q -p "$port"; do true; done;
|
||||
|
||||
db() {
|
||||
echo -n "postgresql:///$1?port=$port&user=$POSTGRES_USER&password=$POSTGRES_PASSWORD"
|
||||
}
|
||||
|
||||
isready() {
|
||||
local waited=0
|
||||
until pg_isready -p "$port" 1>/dev/null; do
|
||||
if [[ "$waited" = "10" ]]; then
|
||||
pwd
|
||||
cat docker-compose.yml
|
||||
docker compose logs base
|
||||
exit 1
|
||||
fi
|
||||
|
||||
sleep 1
|
||||
echo $(( waited++ ))
|
||||
done;
|
||||
until pg_isready -q -p "$port"; do true; done;
|
||||
}
|
||||
|
||||
initdb() {
|
||||
|
Loading…
Reference in New Issue
Block a user