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;