Skip to content

Commit

Permalink
Attempt to fix flyway migration for prod
Browse files Browse the repository at this point in the history
  • Loading branch information
lwitkowski committed Jul 30, 2024
1 parent 8dee971 commit 35a623b
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/db-migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,8 @@ jobs:
- uses: actions/checkout@v4

- name: Run migration
uses: docker://flyway/flyway:10-alpine
env:
FLYWAY_URL: ${{ secrets.DB_JDBC_URL }}
FLYWAY_USER: ${{ secrets.DB_FLYWAY_USER }}
FLYWAY_PASSWORD: ${{ secrets.DB_FLYWAY_PASSWORD }}
FLYWAY_LOCATIONS: filesystem:./db/migrations
FLYWAY_VALIDATE_MIGRATION_NAMING: true
run: |
docker run --rm \
-v ${PWD}'/db/migrations/:/flyway/sql' \
flyway/flyway:10-alpine \
-url=${{ secrets.DB_JDBC_URL }} -user='${{ secrets.DB_FLYWAY_USER }}' -password='${{ secrets.DB_FLYWAY_PASSWORD }}' migrate

0 comments on commit 35a623b

Please sign in to comment.