Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ on:

permissions:
contents: read
packages: read

concurrency:
group: web-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down Expand Up @@ -50,6 +51,8 @@ jobs:
cache-dependency-path: web/pnpm-lock.yaml

- name: Install dependencies
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pnpm install --frozen-lockfile

- name: Lint
Expand Down
2 changes: 2 additions & 0 deletions web/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@onelitefeathernet:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}
9 changes: 6 additions & 3 deletions web/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
# syntax=docker/dockerfile:1
# Grus web UI: Nuxt node-server build (BFF plus SPA) on a distroless Node runtime.
# Build from the repository root, so the image is built from the same context as the controller:
# docker build -f web/Dockerfile -t grus-web .
# docker build --secret id=npm_token,env=NODE_AUTH_TOKEN -f web/Dockerfile -t grus-web .
# The build needs the secret `npm_token`: a token with read:packages, to install @onelitefeathernet/pavo from
# GitHub Packages. It is mounted for the install step only and never written into an image layer.
# Runtime settings come from the environment (NUXT_GRUS_API_URL, NUXT_GRUS_TOKEN), nothing is baked in.

FROM node:24-alpine AS build
WORKDIR /app
RUN corepack enable
COPY web/package.json web/pnpm-lock.yaml web/pnpm-workspace.yaml ./
COPY web/package.json web/pnpm-lock.yaml web/pnpm-workspace.yaml web/.npmrc ./
# `nuxt prepare` (postinstall) needs the sources, so install without scripts first.
RUN pnpm install --frozen-lockfile --ignore-scripts
RUN --mount=type=secret,id=npm_token,env=NODE_AUTH_TOKEN pnpm install --frozen-lockfile --ignore-scripts
COPY web/ ./
RUN pnpm exec nuxt prepare && pnpm build

Expand Down
248 changes: 0 additions & 248 deletions web/app/assets/css/m3-tokens.css

This file was deleted.

Loading