diff --git a/.github/workflows/iso.yml b/.github/workflows/iso.yml index f39ce15..de1fa05 100644 --- a/.github/workflows/iso.yml +++ b/.github/workflows/iso.yml @@ -13,47 +13,6 @@ env: jobs: - build-docker_cache-container: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - steps: - # Checkout push-to-registry action GitHub repository - - name: Checkout Push to Registry action - uses: actions/checkout@v4 - - # Build image using Buildah action - - name: Build Image - id: build_image - uses: redhat-actions/buildah-build@v2 - with: - containerfiles: | - ./containers/docker_cache/Containerfile - context: containers/docker_cache - image: docker_cache - - - name: Lowercase Registry - id: registry_case - uses: ASzc/change-string-case-action@v6 - with: - string: ${{ env.IMAGE_REGISTRY }} - - - name: Push To GHCR - uses: redhat-actions/push-to-registry@v2 - id: push - env: - REGISTRY_USER: ${{ github.actor }} - REGISTRY_PASSWORD: ${{ github.token }} - with: - image: ${{ steps.build_image.outputs.image }} - tags: latest - registry: ${{ steps.registry_case.outputs.lowercase }} - username: ${{ env.REGISTRY_USER }} - password: ${{ env.REGISTRY_PASSWORD }} - extra-args: | - --disable-content-trust - build-and-push-iso: runs-on: ubuntu-latest needs: @@ -61,15 +20,6 @@ jobs: container: image: fedora:39 options: "--privileged" - volumes: - - registry_cache:/registry_cache - services: - dockerregistry: - image: ghcr.io/jasonn3/docker_cache:latest - ports: - - 5000:5000 - volumes: - - registry_cache:/var/lib/registry permissions: contents: read packages: write @@ -88,22 +38,10 @@ jobs: with: submodules: recursive - - name: Mark local registry as http - run: | - cat << EOF >> /etc/containers/registries.conf - [[registry]] - location = "dockerregistry:5000" - insecure = true - EOF - - name: Download container to cache run: | - podman pull dockerregistry:5000/ublue-os/base-main:39 - podman rmi dockerregistry:5000/ublue-os/base-main:39 - - - name: Show downloaded files - run: | - find /registry_cache + podman pull ghcr.io/ublue-os/base-main:39 + podman save --format oci-archive -o base-main.tar ghcr.io/ublue-os/base-main:39 - name: Create boot.iso env: diff --git a/containers/docker_cache/Containerfile b/containers/docker_cache/Containerfile deleted file mode 100644 index 86100a7..0000000 --- a/containers/docker_cache/Containerfile +++ /dev/null @@ -1,3 +0,0 @@ -FROM docker.io/library/registry:2 - -ADD config.yml /etc/docker/registry/config.yml \ No newline at end of file diff --git a/containers/docker_cache/config.yml b/containers/docker_cache/config.yml deleted file mode 100644 index 21a372d..0000000 --- a/containers/docker_cache/config.yml +++ /dev/null @@ -1,18 +0,0 @@ -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/lorax_templates/configs/registry.service b/lorax_templates/configs/registry.service deleted file mode 100644 index e69de29..0000000 diff --git a/lorax_templates/registry_cache.tmpl b/lorax_templates/registry_cache.tmpl index 1c36d35..93a9fc9 100644 --- a/lorax_templates/registry_cache.tmpl +++ b/lorax_templates/registry_cache.tmpl @@ -1,2 +1,2 @@ -append usr/share/anaconda/interactive-defaults.ks ostreecontainer --url=ghcr.io/ublue-os/base-main:39 +append usr/share/anaconda/interactive-defaults.ks ostreecontainer --remote=ghcr.io/ublue-os/base-main:39 --url /run/install/repo/base-main.tar --transport oci-archive \ No newline at end of file diff --git a/scripts/gen_xorriso.sh b/scripts/gen_xorriso.sh index f0f66da..df758e8 100644 --- a/scripts/gen_xorriso.sh +++ b/scripts/gen_xorriso.sh @@ -6,10 +6,6 @@ echo "-boot_image any replay" echo "-volid Fedora-S-dvd-x86_64-39" echo "-joliet on" echo "-compliance joliet_long_names" -cache_files=$(find /registry_cache) -for file in ${cache_files} -do - echo "-map $(pwd)${file} ${file}" - echo "-chmod 0444 ${file}" -done +echo "-map $(pwd)/base-main.tar base-main.tar" +echo "-chmod 0444 base-main.tar" echo "-end" \ No newline at end of file