Skip to content

Commit bec650d

Browse files
fix(ci): webhook Docker context = repo root; pi pnpm globals in PATH
The webhook Dockerfile now references workspace-root files (pnpm-lock.yaml, pnpm-workspace.yaml, other workspace package.json files) to run `pnpm install --filter webhook-ingest...`. Set docker-context to repo root. pi-coding-agent install via `pnpm add -g` requires \$PNPM_HOME/bin in PATH (pnpm 11 uses a /bin layout, not the v10 flat layout). Add both \$PNPM_HOME and \$PNPM_HOME/bin to PATH so corepack can find pnpm and pnpm can find its own globals. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent fdd4b15 commit bec650d

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/ci-docker-build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ jobs:
8181
with:
8282
image-name: "ls1intum/hephaestus/webhook-ingest"
8383
docker-file: "./server/webhook-ingest/Dockerfile"
84-
docker-context: "./server/webhook-ingest"
84+
# Context = repo root so the Dockerfile can COPY pnpm-lock.yaml,
85+
# pnpm-workspace.yaml, and the workspace package.json files needed for
86+
# `pnpm install --filter webhook-ingest...` to resolve the workspace graph.
87+
docker-context: "."
8588
registry: "ghcr.io"
8689
tags: |
8790
${{ github.ref_name }}

docker/agents/pi/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ RUN apt-get update -qq && apt-get install -y --no-install-recommends git finduti
1010
# renovate: datasource=npm depName=@earendil-works/pi-coding-agent
1111
ARG PI_VERSION=0.74.1
1212
ENV PNPM_HOME=/usr/local/pnpm
13-
ENV PATH=$PNPM_HOME:$PATH
13+
# pnpm 11 installs globals into $PNPM_HOME/bin (the v10 flat layout was
14+
# deprecated); both PNPM_HOME and PNPM_HOME/bin need to be in PATH so corepack
15+
# can find the pnpm shim and pnpm can find the binaries it installs globally.
16+
ENV PATH=$PNPM_HOME/bin:$PNPM_HOME:$PATH
1417
RUN corepack enable && \
1518
corepack prepare pnpm@11.1.2 --activate && \
1619
pnpm add -g @earendil-works/pi-coding-agent@${PI_VERSION} && \

0 commit comments

Comments
 (0)