Skip to content

Commit 50a499d

Browse files
committed
Switch js-pipelines branch in pr workflow
1 parent d39155a commit 50a499d

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

.github/workflows/pr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
jobs:
77
test-analyze:
88
name: 'Run'
9-
uses: infinum/js-pipeline/.github/workflows/pipeline.yml@master
9+
uses: infinum/js-pipeline/.github/workflows/pipeline.yml@main
1010
with:
1111
ci_steps: 'lint test analyze'
1212
workflow: '.github/workflows/pr.yml'

Dockerfile

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
FROM node:20.10.0-bookworm AS base
2+
WORKDIR /app
3+
ENV PNPM_HOME="/pnpm"
4+
ENV PATH="$PNPM_HOME:$PATH"
5+
6+
RUN npm install -g [email protected]
7+
8+
# # # PROJECT
9+
FROM base as project
10+
COPY . .
11+
12+
# # # PROD DEPENDENCIES
13+
FROM project AS prod-dependencies
14+
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile --ignore-scripts
15+
16+
# # # BUILDER
17+
FROM project AS builder
18+
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --ignore-scripts
19+
20+
ARG NEXT_PUBLIC_BUGSNAG_API_KEY
21+
22+
RUN pnpm build
23+
24+
# # # RUNNER
25+
FROM base AS runner
26+
COPY --from=prod-dependencies /app/node_modules /app/node_modules
27+
28+
COPY --from=builder /app/.next/standalone/ /app/.next/standalone
29+
COPY --from=builder /app/.next/static /app/.next/standalone/.next/static
30+
COPY --from=builder /app/public /app/.next/standalone/public
31+
32+
CMD ["node", ".next/standalone/server.js"]

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"name": "js-react-example",
33
"version": "0.1.0",
44
"private": true,
5-
"packageManager": "[email protected]",
65
"engines": {
76
"node": "20.10.0"
87
},

0 commit comments

Comments
 (0)