build-image: fix dnf cache mounting issue
Some checks failed
/ build (push) Failing after 32s

This commit is contained in:
thislight 2024-11-28 20:06:15 +08:00
parent 9c1de9ae45
commit c741a5a36c
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E

View file

@ -11,7 +11,7 @@ await $`buildah manifest create ${tag}`;
for (const arch of arches) {
await $`buildah build --arch ${arch} \
--pid=host --ipc=host --network=host --userns=host \
--uts=host ${pathToDnfCache ? `--volume /var/cache/dnf:/var/cache/dnf` : ""} \
--uts=host ${pathToDnfCache ? `-v${pathToDnfCache}:/var/cache/dnf:O` : ""} \
--manifest code.lightstands.xyz/standcoded/${tag} \
--volume ${sharedDir}:/imgbuild:z ${dirName}`;
}