From dc31fc43092a1e563392f3d3c79806163902db9b Mon Sep 17 00:00:00 2001 From: "Jason N." <33561705+JasonN3@users.noreply.github.com> Date: Tue, 13 Feb 2024 13:44:50 +0000 Subject: [PATCH] download cache --- .github/workflows/iso.yml | 18 ++++++++++++++++++ iso_files/kickstart.ks | 2 ++ iso_files/registry/config.yml | 18 ++++++++++++++++++ kickstart.ks | 7 ------- runtime.tmpl | 2 -- 5 files changed, 38 insertions(+), 9 deletions(-) create mode 100644 iso_files/kickstart.ks create mode 100644 iso_files/registry/config.yml delete mode 100644 kickstart.ks delete mode 100644 runtime.tmpl diff --git a/.github/workflows/iso.yml b/.github/workflows/iso.yml index 2dc7837..51c9700 100644 --- a/.github/workflows/iso.yml +++ b/.github/workflows/iso.yml @@ -14,6 +14,15 @@ jobs: container: image: fedora:39 options: "--privileged" + volumes: + - registry_cache:/registry_cache + services: + docker_registry: + image: docker.io/_/registry:2 + ports: + - 5000:5000 + volumes: + - registry_cache:/var/lib/registry permissions: contents: read packages: write @@ -23,6 +32,7 @@ jobs: run: | dnf install -y \ lorax \ + podman \ git - name: Checkout repository @@ -30,6 +40,14 @@ jobs: with: submodules: recursive + - name: Download container to cache + run: | + podman pull localhost:5000/ublue-os/base-main:39 + + - name: Show downloaded files + run: | + find /registry_cache + - name: Create boot.iso env: version: "39" diff --git a/iso_files/kickstart.ks b/iso_files/kickstart.ks new file mode 100644 index 0000000..fd10715 --- /dev/null +++ b/iso_files/kickstart.ks @@ -0,0 +1,2 @@ +# Set source image +ostreecontainer --url=ghcr.io/ublue-os/base-main:39 \ No newline at end of file diff --git a/iso_files/registry/config.yml b/iso_files/registry/config.yml new file mode 100644 index 0000000..21a372d --- /dev/null +++ b/iso_files/registry/config.yml @@ -0,0 +1,18 @@ +version: 0.1 +log: + fields: + service: registry +storage: + filesystem: + rootdirectory: /var/lib/registry +http: + addr: :5000 + headers: + X-Content-Type-Options: [nosniff] +health: + storagedriver: + enabled: true + interval: 10s + threshold: 3 +proxy: + remoteurl: https://ghcr.io diff --git a/kickstart.ks b/kickstart.ks deleted file mode 100644 index 5bc8cc4..0000000 --- a/kickstart.ks +++ /dev/null @@ -1,7 +0,0 @@ -%include submodules/fedora-kickstarts/fedora-disk-server.ks - -%packages --@arm-tools -podman -ostree -%end diff --git a/runtime.tmpl b/runtime.tmpl deleted file mode 100644 index 494f291..0000000 --- a/runtime.tmpl +++ /dev/null @@ -1,2 +0,0 @@ -# Install podman to host registry -installpkg podman \ No newline at end of file