ci: copy source into check image instead of bind-mounting #6
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/ci-docker-check-context"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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>