Fix CI
This commit is contained in:
parent
e90a3285a1
commit
408d3f87f0
2 changed files with 15 additions and 1 deletions
|
|
@ -29,6 +29,11 @@ jobs:
|
||||||
|
|
||||||
- name: Install frontend dependencies
|
- name: Install frontend dependencies
|
||||||
working-directory: frontend
|
working-directory: frontend
|
||||||
|
# Chrome isn't needed for these checks (lint/typecheck/vitest-jsdom), so
|
||||||
|
# skip puppeteer's postinstall browser download — it's slow and a flaky
|
||||||
|
# point of failure. The prerender build installs Chrome explicitly.
|
||||||
|
env:
|
||||||
|
PUPPETEER_SKIP_DOWNLOAD: "true"
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: Install screenshot service dependencies
|
- name: Install screenshot service dependencies
|
||||||
|
|
|
||||||
11
Dockerfile
11
Dockerfile
|
|
@ -12,10 +12,19 @@ ENV BUGSINK_ENVIRONMENT=$BUGSINK_ENVIRONMENT
|
||||||
ENV BUGSINK_RELEASE=$BUGSINK_RELEASE
|
ENV BUGSINK_RELEASE=$BUGSINK_RELEASE
|
||||||
ENV BUGSINK_SEND_DEFAULT_PII=$BUGSINK_SEND_DEFAULT_PII
|
ENV BUGSINK_SEND_DEFAULT_PII=$BUGSINK_SEND_DEFAULT_PII
|
||||||
|
|
||||||
|
# Puppeteer's bundled Chrome downloads from storage.googleapis.com, which is
|
||||||
|
# geo-blocked on the CI host ("this service is not available in your location").
|
||||||
|
# Install Chromium from Debian instead: it's reachable, currently tracks the same
|
||||||
|
# Chrome 149.x puppeteer expects, and apt pulls in the system libraries it needs.
|
||||||
|
# So: skip puppeteer's postinstall browser download and point its launcher (used
|
||||||
|
# by the prerender step) at the system binary.
|
||||||
|
ENV PUPPETEER_SKIP_DOWNLOAD=true \
|
||||||
|
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
|
||||||
|
|
||||||
COPY frontend/package.json frontend/package-lock.json ./
|
COPY frontend/package.json frontend/package-lock.json ./
|
||||||
RUN npm ci
|
RUN npm ci
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& npx puppeteer browsers install chrome --install-deps \
|
&& apt-get install -y --no-install-recommends chromium \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
COPY frontend/ ./
|
COPY frontend/ ./
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue