diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index 13b9623f..15312dbe 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 .:/src -w /src --privileged --rm -i quay.io/centos-bootc/builder:latest rpm-ostree compose image --format=ociarchive \ + --initialize ${{ matrix.os }}-bootc.yaml ${{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