chore: self-bootstrapping CI — build Docker image inline, cache by content hash

Move Docker image build into the evals workflow as a dependency job.
Image tag is keyed on hash of Dockerfile+lockfile+package.json — only
rebuilds when those change. Eliminates chicken-and-egg problem where
the image must exist before the first PR run.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Garry Tan
2026-03-23 06:45:24 -07:00
parent a5c70977f1
commit f1697f6678
2 changed files with 57 additions and 6 deletions
+7
View File
@@ -10,6 +10,13 @@ on:
- '.github/docker/Dockerfile.ci'
- 'bun.lockb'
- 'package.json'
# Build on PRs that change the image (so first PR run has it)
pull_request:
branches: [main]
paths:
- '.github/docker/Dockerfile.ci'
- 'bun.lockb'
- 'package.json'
# Manual trigger
workflow_dispatch: