fix: gen-migrations workflow
Some checks failed
gen-migrations / gen-migrations (push) Failing after 17s
Some checks failed
gen-migrations / gen-migrations (push) Failing after 17s
This commit is contained in:
parent
5e39afbf77
commit
28b6544975
@ -6,6 +6,7 @@ jobs:
|
|||||||
if: |
|
if: |
|
||||||
!startsWith(gitea.event.head_commit.message, 'chore')
|
!startsWith(gitea.event.head_commit.message, 'chore')
|
||||||
container:
|
container:
|
||||||
|
ports: [5432, 5433]
|
||||||
image: 'git.orionkindel.com/dnim/db-ci-runner:disheveled-iceberg-launched-loosely'
|
image: 'git.orionkindel.com/dnim/db-ci-runner:disheveled-iceberg-launched-loosely'
|
||||||
volumes: ['/run/user/1001/docker.sock:/run/user/1001/docker.sock']
|
volumes: ['/run/user/1001/docker.sock:/run/user/1001/docker.sock']
|
||||||
steps:
|
steps:
|
||||||
|
@ -14,8 +14,8 @@ fi;
|
|||||||
|
|
||||||
migration="./migrations/${base}_to_${head}.sql"
|
migration="./migrations/${base}_to_${head}.sql"
|
||||||
|
|
||||||
base_url=postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@localhost:5432/dnim
|
base_url="postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@localhost:5432/dnim"
|
||||||
head_url=postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@localhost:5433/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