This repository has been archived by the owner on Nov 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
65 lines (61 loc) · 1.81 KB
/
bootc.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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
cat >> Cargo.toml << 'EOF'
[patch.crates-io]
ostree-ext = { path = "../ostree-rs-ext/lib" }
EOF
- name: Install deps
run: ./bootc/ci/installdeps.sh
- name: Cache Dependencies
uses: Swatinem/rust-cache@v2
with:
key: "build-bootc-c9s"
workspaces: bootc
- 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-c9s.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 /var/lib/containers:/var/lib/containers -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