Skip to content

Commit 5fd172f

Browse files
feat: update Dockerfile and workflows to include AUTO_MIGRATE variable and SDK dependency
1 parent f053d32 commit 5fd172f

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

.dockerignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,7 @@ components.json
5454
graphql.config.ts
5555

5656
# Development utilities
57-
nitroping
57+
# nitroping # SDK needed for build
58+
59+
# Include SDK for build
60+
sdk

.github/workflows/docker-publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ jobs:
6565
JWT_SECRET=0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
6666
ENCRYPTION_KEY=0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
6767
WEBHOOK_SECRET=0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
68+
AUTO_MIGRATE=false
6869
6970
- name: Test Docker image
7071
if: github.event_name == 'pull_request'

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ ARG DATABASE_URL
1515
ARG JWT_SECRET
1616
ARG ENCRYPTION_KEY
1717
ARG WEBHOOK_SECRET
18+
ARG AUTO_MIGRATE
1819

1920
# Set environment variables for build
2021
ENV NODE_OPTIONS="--max-old-space-size=4096"
2122
ENV DATABASE_URL=$DATABASE_URL
2223
ENV JWT_SECRET=$JWT_SECRET
2324
ENV ENCRYPTION_KEY=$ENCRYPTION_KEY
2425
ENV WEBHOOK_SECRET=$WEBHOOK_SECRET
26+
ENV AUTO_MIGRATE=$AUTO_MIGRATE
2527

2628
RUN pnpm run build
2729

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"jsonwebtoken": "^9.0.2",
4646
"lucide-vue-next": "^0.539.0",
4747
"nitro-graphql": "^1.1.3",
48-
"nitroping": "link:./sdk",
48+
"nitroping": "^0.1.0",
4949
"nuxt": "^4.0.3",
5050
"pinia": "^3.0.3",
5151
"postgres": "^3.4.7",

pnpm-lock.yaml

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)