fix(ci-image): stage patches/ into the narrow build context in all three workflows

The image builds from context .github/docker, into which a staging step
copies package.json + bun.lock — the previous fix added COPY patches to the
Dockerfile but not patches/ to that staging, so buildx failed computing the
COPY checksum ('/patches: not found'). All three workflows (ci-image, evals,
evals-periodic) stage identically, in lockstep with the shared tag hash.

Verified: a build over the exact staged context resolves both COPY layers.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Garry Tan
2026-08-16 15:39:45 -07:00
co-authored by Claude Fable 5
parent 4c335c9133
commit 85fbd00b3f
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v7
# Copy lockfile + package.json into Docker build context
- run: cp package.json bun.lock .github/docker/
- run: cp package.json bun.lock .github/docker/ && cp -R patches .github/docker/patches
# Same content-hash tag expression as evals.yml / evals-periodic.yml.
# This is the tag the eval matrix looks up first — without pushing it
+1 -1
View File
@@ -45,7 +45,7 @@ jobs:
fi
- if: steps.check.outputs.exists == 'false'
run: cp package.json bun.lock .github/docker/
run: cp package.json bun.lock .github/docker/ && cp -R patches .github/docker/patches
# Registry cache export needs a docker-container builder — the default
# `docker` driver hard-errors on cache-to.
+1 -1
View File
@@ -54,7 +54,7 @@ jobs:
fi
- if: steps.check.outputs.exists == 'false'
run: cp package.json bun.lock .github/docker/
run: cp package.json bun.lock .github/docker/ && cp -R patches .github/docker/patches
# A fork PR's GITHUB_TOKEN only has `packages: read`, so pushing fails.
# Still BUILD (validates Dockerfile.ci changes), just don't publish. This