mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-08-09 16:20:59 +00:00
Self-hosted NVIDIA confidential GPU runners receive a clean checkout for each job, so genpolicy discards useful layer metadata and downloads the same image layers again. For CoCo jobs, create a cache under the runner user's home directory and export GENPOLICY_LAYERS_CACHE_FILE_PATH in the test step that consumes it. The cache survives workspace cleanup while the environment variable remains scoped to that process tree. Use the existing KBS job environment variable in the shell condition so matrix expressions are not expanded directly into executable code. Assisted-by: OpenAI Codex <codex@openai.com> Signed-off-by: Manuel Huber <manuelh@nvidia.com>