fix: gen-migrations workflow
Some checks failed
gen-migrations / gen-migrations (push) Failing after 17s

This commit is contained in:
Orion Kindel 2023-07-19 18:14:37 -05:00
parent 5e39afbf77
commit 28b6544975
Signed by untrusted user who does not match committer: orion
GPG Key ID: 6D4165AE4C928719
2 changed files with 3 additions and 2 deletions

View File

@ -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:

View File

@ -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;