Skip to content

Commit

Permalink
Dockerfile update to include knexfile (#32)
Browse files Browse the repository at this point in the history
* VR-104: Dockerfile update - copy over knexfile along with the migrations folder.

* VR-104: temporary remove from the workflows.

* VR-104: missing dependency.

* VR-104 some timeout for database to actually get up.

* VR-104: also for test workflow 🤦.

---------

Co-authored-by: Paulius Michelevicius <[email protected]>
  • Loading branch information
n3op2 and Paulius Michelevicius authored May 22, 2024
1 parent 35518ea commit a7f244c
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,16 @@ jobs:
${{ runner.OS }}-
- name: Install Packages
run: npm ci
- name: Setup dependencies
run: docker compose up -d
- name: Sleep
uses: kibertoad/[email protected]
with:
time: '30s'
- name: Run database migrations
run: npm run db:migrate
env:
NODE_ENV: test
- name: Run tests
run: npm run test

Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@ jobs:
${{ runner.OS }}-
- name: Install Packages
run: npm ci
- name: Setup dependencies
run: docker compose up -d
- name: Sleep
uses: kibertoad/[email protected]
with:
time: '30s'
- name: Run database migrations
run: npm run db:migrate
env:
NODE_ENV: test
- name: Run tests
run: npm run test

Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ COPY package*.json ./
RUN npm ci --omit-dev

COPY public ./public
COPY migrations ./migrations
COPY knexfile.js ./
COPY --from=builder /veritable-ui/build ./build

EXPOSE 80
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "veritable-ui",
"version": "0.3.6",
"version": "0.3.7",
"description": "UI for Veritable",
"main": "src/index.ts",
"type": "commonjs",
Expand Down

0 comments on commit a7f244c

Please sign in to comment.