From 28b65449753d2d20b5e08dd882c54ead0cf1197a Mon Sep 17 00:00:00 2001 From: Orion Kindel Date: Wed, 19 Jul 2023 18:14:37 -0500 Subject: [PATCH] fix: gen-migrations workflow --- .gitea/workflows/gen-migrations.yml | 1 + scripts/diff.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/gen-migrations.yml b/.gitea/workflows/gen-migrations.yml index ba5ff8d..efd0aa6 100644 --- a/.gitea/workflows/gen-migrations.yml +++ b/.gitea/workflows/gen-migrations.yml @@ -6,6 +6,7 @@ jobs: if: | !startsWith(gitea.event.head_commit.message, 'chore') container: + ports: [5432, 5433] image: 'git.orionkindel.com/dnim/db-ci-runner:disheveled-iceberg-launched-loosely' volumes: ['/run/user/1001/docker.sock:/run/user/1001/docker.sock'] steps: diff --git a/scripts/diff.sh b/scripts/diff.sh index 8ac3ca3..fb9d226 100755 --- a/scripts/diff.sh +++ b/scripts/diff.sh @@ -14,8 +14,8 @@ fi; migration="./migrations/${base}_to_${head}.sql" -base_url=postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@localhost:5432/dnim -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 echo "revisions to diff are required ex. ./scripts/diff.sh abc bcd" 1>&2;