Skip to content

Build Image

Build Image #3

Workflow file for this run

name: Build Image
on:
pull_request:
branches:
- main
paths-ignore:
- "docs/**"
workflow_dispatch:
jobs:
build-test-install:
runs-on: ubuntu-latest
strategy:
matrix:
os: [fedora, centos]
include:
- os: fedora
version: eln
- os: centos
version: stream9
steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Build
run: |
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