fix: gen-migrations workflow
Some checks failed
gen-migrations / gen-migrations (push) Failing after 3s
Some checks failed
gen-migrations / gen-migrations (push) Failing after 3s
This commit is contained in:
parent
508c1c2693
commit
111338a172
@ -14,7 +14,7 @@ else
|
|||||||
port=5432
|
port=5432
|
||||||
fi
|
fi
|
||||||
|
|
||||||
docker compose down "$base_or_head" &>/dev/null
|
docker compose down "$base_or_head" 1>/dev/null
|
||||||
|
|
||||||
url="postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@localhost:$port"
|
url="postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@localhost:$port"
|
||||||
|
|
||||||
@ -30,7 +30,7 @@ initdb() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if [[ "$rev" = "empty" ]]; then
|
if [[ "$rev" = "empty" ]]; then
|
||||||
docker compose up -d "$base_or_head" &>/dev/null
|
docker compose up -d "$base_or_head" 1>/dev/null
|
||||||
isready
|
isready
|
||||||
initdb
|
initdb
|
||||||
exit 0
|
exit 0
|
||||||
@ -44,7 +44,7 @@ cp docker-compose.yml "./$base_or_head/docker-compose.yml"
|
|||||||
cp .env.schema "./$base_or_head/.env.schema"
|
cp .env.schema "./$base_or_head/.env.schema"
|
||||||
|
|
||||||
cd "./$base_or_head"
|
cd "./$base_or_head"
|
||||||
docker compose up -d "$base_or_head" &>/dev/null
|
docker compose up -d "$base_or_head" 1>/dev/null
|
||||||
cd "../$base_or_head"
|
cd "../$base_or_head"
|
||||||
|
|
||||||
isready
|
isready
|
||||||
|
Loading…
Reference in New Issue
Block a user