ci: Add release workflows for docs and www

This commit is contained in:
deytenit committed 2026-01-25 19:51:56 +03:00
1 parent fe7330052d
commit 0d8a706af3
11 files changed
+621 -131

No files matched your search

+41
View File
@@ -0,0 +1,41 @@
# Stage 1: Build
FROM node:20-alpine AS builder
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat
RUN npm install -g pnpm@9.12.3
WORKDIR /app
# Copy monorepo configuration
COPY pnpm-lock.yaml pnpm-workspace.yaml package.json ./
# Copy all package.json files to allow pnpm to fetch dependencies
COPY packages/eslint-config/package.json ./packages/eslint-config/
COPY packages/jest-config/package.json ./packages/jest-config/
COPY packages/stl/package.json ./packages/stl/
COPY packages/storybook-config/package.json ./packages/storybook-config/
COPY packages/ui/package.json ./packages/ui/
COPY packages/vite-config/package.json ./packages/vite-config/
COPY services/www/package.json ./services/www/
# Install dependencies
RUN pnpm install --frozen-lockfile
# Copy source code
COPY . .
# Build dependencies and then the website
RUN pnpm --filter @ermnvldmr/jest-config build
RUN pnpm --filter @ermnvldmr/vite-config build
RUN pnpm --filter @ermnvldmr/stl build
RUN pnpm --filter @ermnvldmr/ui build
RUN pnpm --filter @ermnvldmr/www build
# Stage 2: Runtime
FROM nginx:alpine
COPY --from=builder /app/services/www/dist /usr/share/nginx/html
COPY ci/config/nginx/default.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]