fix: run Electron artifact builds in the bounded worker [CI SKIP]
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
FROM node:22-bookworm-slim AS build
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends ca-certificates curl git python3 make g++ \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
WORKDIR /workspace
|
||||
COPY source/ ./
|
||||
COPY runner.cjs /build-runner.cjs
|
||||
ARG BUILD_REQUEST_ID
|
||||
RUN --mount=type=secret,id=build-config,required=true \
|
||||
test -n "$BUILD_REQUEST_ID" && timeout --signal=TERM --kill-after=10s 1800 node /build-runner.cjs
|
||||
|
||||
FROM scratch AS artifact
|
||||
COPY --from=build /build-output/ /
|
||||
Reference in New Issue
Block a user