build-image: remove hard-coded hosts from containerfiles
All checks were successful
/ build (push) Successful in 6m35s
All checks were successful
/ build (push) Successful in 6m35s
This commit is contained in:
parent
f19e17221b
commit
9899ce98f7
3 changed files with 8 additions and 5 deletions
|
@ -1,6 +1,3 @@
|
||||||
|
|
||||||
$schema: https://github.com/SchemaStore/schemastore/raw/master/src/schemas/json/github-workflow.json
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ['master']
|
branches: ['master']
|
||||||
|
@ -15,7 +12,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: fedora-40
|
runs-on: fedora-41
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM code.lightstands.xyz/standcoded/fedora-minimal:41
|
FROM localhost/runner-images/fedora-minimal:41
|
||||||
|
|
||||||
RUN dnf install -y --setopt install_weak_deps=False sqlite-devel binutils
|
RUN dnf install -y --setopt install_weak_deps=False sqlite-devel binutils
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,10 @@ const dirName = process.argv[3];
|
||||||
const arches = process.argv[4].split(",");
|
const arches = process.argv[4].split(",");
|
||||||
const pathToDnfCache = process.env["DNF_CACHE_PATH"];
|
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}`;
|
await $`buildah manifest create ${tag}`;
|
||||||
for (const arch of arches) {
|
for (const arch of arches) {
|
||||||
await $`buildah build --arch ${arch} \
|
await $`buildah build --arch ${arch} \
|
||||||
|
@ -15,3 +19,5 @@ for (const arch of arches) {
|
||||||
--manifest ${tag} \
|
--manifest ${tag} \
|
||||||
--volume ${sharedDir}:/imgbuild:z ${dirName}`;
|
--volume ${sharedDir}:/imgbuild:z ${dirName}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await $`buildah tag ${tag} ${tempTag}`;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue