Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
fix(ci): add build proto
Browse files Browse the repository at this point in the history
  • Loading branch information
floriaaan committed Oct 18, 2023
1 parent 8380578 commit cb8658d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/gateway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ jobs:
run: |
cd ./services/gateway
pnpm install --frozen-lockfile
- name: Build protos
run: |
cd ./services/gateway
pnpm build:proto
- name: Build
run: |
cd ./services/gateway
Expand Down
3 changes: 3 additions & 0 deletions services/gateway/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ RUN npm install
# Copy the proto files
COPY ./proto ./proto/

# Generate the proto files
RUN npm run build:proto

# Build the application
RUN npm run build

Expand Down
1 change: 1 addition & 0 deletions services/gateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"start": "node dist/index.js",
"dev": "nodemon --watch 'src/**/*.ts' --exec 'ts-node' src/server.ts",
"build": "esbuild src/server.ts --bundle --platform=node --target=node18 --outfile=dist/index.js --minify",
"build:proto": "sh proto/build-protos.sh",
"test": "vitest",
"coverage": "vitest --coverage",
"generate:proto": "sh proto/build-protos.sh",
Expand Down

0 comments on commit cb8658d

Please sign in to comment.