Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Add revdep-ci for bootc #351

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target
30 changes: 30 additions & 0 deletions .github/workflows/ci-bootc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: revdep CI bootc

permissions:
actions: read

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch: {}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
c9s-bootc-e2e:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: build
run: sudo podman build -t localhost/test:latest -f ci/Containerfile.c9s-bootc .
- name: bootc install
run: |
set -xeuo pipefail
sudo podman run --env BOOTC_SKIP_SELINUX_HOST_CHECK=1 --rm -ti --privileged -v /:/target --pid=host --security-opt label=disable \
-v /dev:/dev -v /var/lib/containers:/var/lib/containers \
localhost/test:latest bootc install to-filesystem --skip-fetch-check \
--replace=alongside /target
10 changes: 10 additions & 0 deletions ci/Containerfile.c9s-bootc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM quay.io/centos/centos:stream9 as build
RUN dnf -y install dnf-utils zstd && dnf config-manager --enable crb && dnf builddep -y composefs && \
dnf -y install meson
COPY . /build
WORKDIR /build
RUN set -x; ls -al; meson setup target --prefix=/usr && meson compile -C target && \
env DESTDIR=$(pwd)/target/instroot meson install -C target

FROM quay.io/centos-bootc/centos-bootc-dev:stream9
COPY --from=build /build/target/instroot/usr/ /usr/
Loading