ci: copy source into check image instead of bind-mounting #6

Merged
David merged 1 commit from fix/ci-docker-check-context into main 2026-05-07 01:34:29 +02:00
Owner

The previous workflow bind-mounted ${{ github.workspace }} into the check container, but on the Forgejo runner that path lives inside the runner container and is not visible to the host Docker daemon, so the bind produced an empty /workspace and cargo failed with could not find Cargo.toml. Switch to a build-time COPY via oci-build/check.Dockerfile, which runs fmt, clippy, build, and tests as RUN layers; a successful docker build means every check passed.

Also commit Cargo.lock (this workspace produces binaries, so the lockfile must be tracked) and remove its entry from .gitignore.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

The previous workflow bind-mounted ${{ github.workspace }} into the check container, but on the Forgejo runner that path lives inside the runner container and is not visible to the host Docker daemon, so the bind produced an empty /workspace and cargo failed with `could not find Cargo.toml`. Switch to a build-time COPY via oci-build/check.Dockerfile, which runs fmt, clippy, build, and tests as RUN layers; a successful docker build means every check passed. Also commit Cargo.lock (this workspace produces binaries, so the lockfile must be tracked) and remove its entry from .gitignore. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
ci: copy source into check image instead of bind-mounting
Some checks failed
Check / clippy + fmt + tests (pull_request) Failing after 7s
4597bdd693
The previous workflow bind-mounted ${{ github.workspace }} into the check container, but on the Forgejo runner that path lives inside the runner container and is not visible to the host Docker daemon, so the bind produced an empty /workspace and cargo failed with `could not find Cargo.toml`. Switch to a build-time COPY via oci-build/check.Dockerfile, which runs fmt, clippy, build, and tests as RUN layers; a successful docker build means every check passed.

Also commit Cargo.lock (this workspace produces binaries, so the lockfile must be tracked) and remove its entry from .gitignore.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
David merged commit 9c25a439d3 into main 2026-05-07 01:34:29 +02:00
David deleted branch fix/ci-docker-check-context 2026-05-07 01:34:29 +02: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
psa-systems/vervain-agent!6
No description provided.