From 951437a94dd0a47437fd108bd3663248a4361a41 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 31 Jan 2024 13:05:48 -0500 Subject: [PATCH] wip --- .github/workflows/build-image.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index 13b9623f..b2f89dc3 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -10,13 +10,9 @@ on: workflow_dispatch: jobs: - build-image: + build-test-install: runs-on: ubuntu-latest - container: - image: quay.io/centos-bootc/builder:latest - options: --privileged - strategy: matrix: os: [fedora, centos] @@ -32,5 +28,14 @@ jobs: - name: Build run: | - rpm-ostree compose image --format=ociarchive \ - --initialize ${{ matrix.os }}-bootc.yaml dest.oci-archive + sudo podman run -v .:/output --privileged --rm -i quay.io/centos-bootc/builder:latest rpm-ostree compose image --format=ociarchive \ + --initialize ${{ matrix.os }}-bootc.yaml output/${{matrix.os}}.ociarchive + + - name: Copy to host + run: sudo skopeo copy ${{ matrix.os }}.ociarchive containers-storage:localhost/${{ matrix.os }} && rm -v *.ociarchive + + - name: Test bootc install alongside + run: | + sudo podman run --rm -ti --privileged -v /:/target -v /var/lib/containers:/var/lib/containers --pid=host --security-opt label=disable \ + localhost/${{ matrix.os }} bootc install to-filesystem --skip-fetch-check \ + --disable-selinux --replace=alongside /target