build-image: remove hard-coded hosts from containerfiles
All checks were successful
/ build (push) Successful in 6m35s

This commit is contained in:
thislight 2025-06-29 18:53:03 +08:00
parent f19e17221b
commit 9899ce98f7
3 changed files with 8 additions and 5 deletions

View file

@ -7,6 +7,10 @@ const dirName = process.argv[3];
const arches = process.argv[4].split(",");
const pathToDnfCache = process.env["DNF_CACHE_PATH"];
const stag = tag.split('/');
const imageName = stag[stag.length - 1];
const tempTag = `localhost/runner-images/${imageName}`;
await $`buildah manifest create ${tag}`;
for (const arch of arches) {
await $`buildah build --arch ${arch} \
@ -15,3 +19,5 @@ for (const arch of arches) {
--manifest ${tag} \
--volume ${sharedDir}:/imgbuild:z ${dirName}`;
}
await $`buildah tag ${tag} ${tempTag}`;