Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
cgwalters committed Jan 31, 2024
1 parent 776e922 commit 951437a
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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

0 comments on commit 951437a

Please sign in to comment.