mirror of
https://github.com/containers/bootc.git
synced 2026-02-05 06:45:13 +01:00
ci: Build test binaries before sudo commands
Move `cargo build --release -p tests-integration` to run before `sudo podman build` to avoid cargo registry permission issues. The tests-integration binary doesn't depend on the fsverity image, so this reordering has no functional impact on the test flow. Signed-off-by: Xiaofeng Wang <henrywangxf@me.com>
This commit is contained in:
committed by
Colin Walters
parent
14613a0900
commit
e96d544c2f
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@@ -73,11 +73,12 @@ jobs:
|
||||
just copy-to-rootful localhost/bootc-install
|
||||
# Copy bound images (LBI) to root's storage for tests that need them
|
||||
just copy-lbi-to-rootful
|
||||
sudo podman build -t localhost/bootc-fsverity -f ci/Containerfile.install-fsverity
|
||||
|
||||
# TODO move into a container, and then have this tool run other containers
|
||||
# Build test binaries before any sudo commands to avoid cargo permission issues
|
||||
cargo build --release -p tests-integration
|
||||
|
||||
sudo podman build -t localhost/bootc-fsverity -f ci/Containerfile.install-fsverity
|
||||
|
||||
df -h /
|
||||
sudo install -m 0755 target/release/tests-integration /usr/bin/bootc-integration-tests
|
||||
sudo rm target -rf
|
||||
|
||||
Reference in New Issue
Block a user