Skip to content

Commit

Permalink
restructured migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
barrfalk committed Jul 8, 2024
1 parent 5e38ef8 commit 52b1406
Show file tree
Hide file tree
Showing 102 changed files with 20 additions and 23,488 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
oc_namespace: ${{ secrets.OC_NAMESPACE }}
oc_token: ${{ secrets.OC_TOKEN }}
with:
triggers: ('backend/' 'frontend/' 'webeoc/' 'migrations/' 'test-only-migrations')
triggers: ('backend/' 'frontend/' 'webeoc/' 'migrations/')
params: --set global.secrets.persist=false

tests:
Expand Down
16 changes: 0 additions & 16 deletions backend/db/Dockerfile

This file was deleted.

6 changes: 6 additions & 0 deletions migrations/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.idea
.vscode
coverage
cypress
dist
node_modules
13 changes: 13 additions & 0 deletions migrations/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM flyway/flyway:10-alpine

# Copy migrations
COPY ./sql /flyway/sql
COPY ./test-only-migrations /flyway/test-only-migrations

# Non-root user
RUN adduser -D app
USER app

# Health check and startup
HEALTHCHECK CMD info
CMD ["info", "migrate", "info"]
3 changes: 0 additions & 3 deletions migrations/R__0.10.0__CE-216.sql

This file was deleted.

3 changes: 0 additions & 3 deletions migrations/R__0.10.1__CE-216.sql

This file was deleted.

3 changes: 0 additions & 3 deletions migrations/R__0.10.2__CE-216.sql

This file was deleted.

23 changes: 0 additions & 23 deletions migrations/R__0.10.3__CE-216.sql

This file was deleted.

Loading

0 comments on commit 52b1406

Please sign in to comment.