-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3152 from cgwalters/ci-bootc
ci: Add a bootc/c9s workflow
- Loading branch information
Showing
4 changed files
with
55 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: 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-latest | ||
steps: | ||
# We use docker to build because it updates to the latest, whereas right now ubuntu-latest | ||
# has podman and buildah from ~2021 (insane!) | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- uses: actions/checkout@v3 | ||
- name: Build and export to Docker | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
file: ci/Containerfile.c9s | ||
load: true | ||
tags: localhost/test:latest | ||
- name: Copy to podman | ||
run: sudo skopeo copy docker-daemon:localhost/test:latest containers-storage:localhost/test:latest | ||
- name: bootc install | ||
run: | | ||
set -xeuo pipefail | ||
sudo podman run --rm -ti --privileged -v /:/target --pid=host --security-opt label=disable \ | ||
-v /var/lib/containers:/var/lib/containers \ | ||
localhost/test:latest bootc install to-filesystem --skip-fetch-check \ | ||
--disable-selinux --replace=alongside /target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM quay.io/centos/centos:stream9 as build | ||
RUN dnf -y install dnf-utils zstd && dnf config-manager --enable crb && dnf builddep -y ostree | ||
COPY . /build | ||
WORKDIR /build | ||
RUN env NOCONFIGURE=1 ./autogen.sh && \ | ||
./configure --prefix=/usr --libdir=/usr/lib64 --sysconfdir=/etc --with-curl --with-selinux --with-dracut=yesbutnoconf && \ | ||
make -j 8 && \ | ||
make install DESTDIR=$(pwd)/target/inst | ||
|
||
FROM quay.io/centos-bootc/centos-bootc-dev:stream9 | ||
COPY --from=build /build/target/inst/ / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters