fix: gen-migrations workflow
Some checks failed
gen-migrations / gen-migrations (push) Failing after 16s
Some checks failed
gen-migrations / gen-migrations (push) Failing after 16s
This commit is contained in:
parent
28b6544975
commit
e76d3de4d8
@ -40,4 +40,5 @@ jobs:
|
|||||||
git push
|
git push
|
||||||
fi
|
fi
|
||||||
env:
|
env:
|
||||||
|
DOCKER_NETWORK_HOST: 'host.docker.internal'
|
||||||
DOCKER_HOST: 'unix:///run/user/1001/docker.sock' # HACK: rootless docker on gitea action runner
|
DOCKER_HOST: 'unix:///run/user/1001/docker.sock' # HACK: rootless docker on gitea action runner
|
||||||
|
@ -17,7 +17,8 @@ fi
|
|||||||
docker compose stop "$base_or_head" 1>/dev/null
|
docker compose stop "$base_or_head" 1>/dev/null
|
||||||
docker compose rm -f "$base_or_head" 1>/dev/null
|
docker compose rm -f "$base_or_head" 1>/dev/null
|
||||||
|
|
||||||
url="postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@localhost:$port"
|
localhost=${DOCKER_NETWORK_HOST:-localhost}
|
||||||
|
url="postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@$localhost:$port"
|
||||||
|
|
||||||
isready() {
|
isready() {
|
||||||
local waited=0
|
local waited=0
|
||||||
|
@ -14,8 +14,9 @@ fi;
|
|||||||
|
|
||||||
migration="./migrations/${base}_to_${head}.sql"
|
migration="./migrations/${base}_to_${head}.sql"
|
||||||
|
|
||||||
base_url="postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@localhost:5432/dnim"
|
localhost=${DOCKER_NETWORK_HOST:-localhost}
|
||||||
head_url="postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@localhost:5433/dnim"
|
base_url="postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@$localhost:5432/dnim"
|
||||||
|
head_url="postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@$localhost:5433/dnim"
|
||||||
|
|
||||||
if [[ -z "$base" ]] || [[ -z "$head" ]]; then
|
if [[ -z "$base" ]] || [[ -z "$head" ]]; then
|
||||||
echo "revisions to diff are required ex. ./scripts/diff.sh abc bcd" 1>&2;
|
echo "revisions to diff are required ex. ./scripts/diff.sh abc bcd" 1>&2;
|
||||||
|
Loading…
Reference in New Issue
Block a user