wip #3
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
name: CI | |
permissions: | |
actions: read | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: {} | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
c9s-bootc-e2e: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Homebrew | |
run: curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | |
- name: Install newer podman | |
run: brew install podman | |
- uses: actions/checkout@v3 | |
- name: Cache Dependencies | |
uses: Swatinem/rust-cache@v2 | |
with: | |
key: "build-c9s" | |
- name: Build container | |
run: podman build -t localhost/bootupd -f ci/Containerfile.c9s . | |
- 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/bootupd bootc install to-filesystem \ | |
--disable-selinux --replace=alongside /target |