forked from CentOS/centos-bootc
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1.25 KB
/
build-image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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 oci-archive:${{ matrix.os }}.ociarchive containers-storage:localhost/${{ matrix.os }} && rm -v *.ociarchive
- name: Test bootc install alongside
run: |
sudo podman run --rm -ti --env RUST_LOG=debug --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