From 59505391e9eed689477c5e2dedbf5477db369a3b Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 7 Feb 2024 11:23:28 -0500 Subject: [PATCH] wip --- .github/workflows/bootc.yml | 61 +++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .github/workflows/bootc.yml diff --git a/.github/workflows/bootc.yml b/.github/workflows/bootc.yml new file mode 100644 index 00000000..cf403b56 --- /dev/null +++ b/.github/workflows/bootc.yml @@ -0,0 +1,61 @@ +name: bootc + +permissions: + actions: read + +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: {} + +jobs: + build-c9s: + runs-on: ubuntu-latest + container: quay.io/centos/centos:stream9 + steps: + - run: dnf -y install git-core + - uses: actions/checkout@v3 + with: + repository: containers/bootc + path: bootc + - uses: actions/checkout@v3 + with: + path: ostree-rs-ext + - name: Patch bootc to use ostree-rs-ext + run: | + set -xeuo pipefail + cd bootc + echo "ostree-rs-ext = { path = \"../ostree-rs-ext\" }" >> Cargo.toml + - name: Install deps + run: ./bootc/ci/installdeps.sh + - name: Cache Dependencies + uses: Swatinem/rust-cache@v2 + with: + key: "build-bootc-c9s" + - name: Build + run: cd bootc && make test-bin-archive + - name: Upload binary + uses: actions/upload-artifact@v3 + with: + name: bootc-c9s.tar.zst + path: bootc/target/bootc.tar.zst + privtest-alongside: + name: "Test install-alongside" + needs: build-c9s + runs-on: ubuntu-latest + steps: + - name: Download + uses: actions/download-artifact@v3 + with: + name: bootc.tar.zst + - name: Install + run: tar -xvf bootc.tar.zst + - name: Integration tests + run: | + set -xeuo pipefail + sudo podman run --rm -ti --privileged -v /:/target -v ./usr/bin/bootc:/usr/bin/bootc --pid=host --security-opt label=disable \ + quay.io/centos-bootc/centos-bootc-dev:stream9 bootc install to-filesystem \ + --karg=foo=bar --disable-selinux --replace=alongside /target +