mirror of
https://github.com/redhat-actions/buildah-build.git
synced 2026-11-16 19:40:57 +00:00
The buildah-image container mode hardcoded /var/lib/containers/storage
as the volume mount path. This is the rootful storage location and
fails with "permission denied" when the runner operates as a non-root
user (rootless podman stores data elsewhere).
Query `podman info --format '{{.Store.GraphRoot}}'` at runtime to
discover the actual storage root. Falls back to the previous hardcoded
path with a warning if detection fails.
Also adds vitest and unit tests for the container mode logic, and a
test job in CI.
Closes #174
Co-authored-by: Claude Opus 4.6 <[email protected]>
7 lines
139 B
TypeScript
7 lines
139 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
include: ["src/**/*.test.ts"],
|
|
},
|
|
});
|