Skip to content

Commit

Permalink
fix(ci): migration cli failing without database name (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
timonmasberg committed Apr 16, 2023
1 parent 0affebe commit b300c34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/next-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
run: ./tools/db/kordis-db.sh apply-pending-migrations
env:
MONGODB_URI: ${{ secrets.DEV_MONGODB_URI }}
MONGODB_DB: dev

- name: Build and Deploy SPA
id: spa-deployment
Expand Down
1 change: 1 addition & 0 deletions tools/db/migrations/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { mongoMigrateCli } from 'mongo-migrate-ts';

mongoMigrateCli({
uri: process.env.MONGODB_URI,
database: process.env.MONGODB_DB,
migrationsDir: __dirname,
migrationsCollection: 'migrations',
});

0 comments on commit b300c34

Please sign in to comment.