fix(api image): copy migrations and openapi.yaml into the build stage #19

Merged
nicolas_naranjo merged 1 commit from hotfix/api-image-context into master 2026-10-23 23:23:42 -05:00
Owner

What

The api crate embeds migrations/ (sqlx::migrate!) and openapi.yaml (include_str!) at compile time, but the image build stage never COPYed them. The image only ever built off a stale docker cache layer from the api agent's iteration; PR #9's Cargo.lock churn invalidated that layer and the compose smoke test surfaced the break (error canonicalizing migration directory ... /src/openapi.yaml: No such file or directory).

Gates

  • docker build -f deploy/api.Dockerfile . — green from scratch context on current master.
  • No code changes; CI (fmt/clippy/test) unaffected.
## What The api crate embeds `migrations/` (sqlx::migrate!) and `openapi.yaml` (include_str!) at compile time, but the image build stage never COPYed them. The image only ever built off a stale docker cache layer from the api agent's iteration; PR #9's Cargo.lock churn invalidated that layer and the compose smoke test surfaced the break (`error canonicalizing migration directory ... /src/openapi.yaml: No such file or directory`). ## Gates - `docker build -f deploy/api.Dockerfile .` — green from scratch context on current master. - No code changes; CI (fmt/clippy/test) unaffected.
fix(api image): copy migrations and openapi.yaml into the build stage
Some checks failed
ci / rust (pull_request) Failing after 13s
ci / web (pull_request) Successful in 21m4s
47eab37a8f
rgxr-api embeds both at compile time (sqlx::migrate! + include_str!),
but the builder stage never COPYed them — the image only ever built
off a stale cache layer, and the render PR's Cargo.lock churn
invalidated it, surfacing the break in the compose smoke test.
nicolas_naranjo deleted branch hotfix/api-image-context 2026-10-23 23:23:43 -05:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
k8s-services/rgxr!19
No description provided.