test: add cross-build end-to-end test

This commit uses the new `build --arch=` support to perform
a cross arch build for aarch64, ppc64le, riscv64, s390x on
fedora. We could do also centos-9 each arch is already 20min.
This commit is contained in:
Michael Vogt 2025-02-18 19:49:31 +01:00
parent 8e6a6673f5
commit cd1b5bae64
3 changed files with 30 additions and 0 deletions

View file

@ -13,6 +13,8 @@ RUN CGO_ENABLED=0 go build -tags "containers_image_openpgp exclude_graphdriver_b
FROM registry.fedoraproject.org/fedora:41
# podman mount needs this
RUN mkdir -p /etc/containers/networks
# Fast-track osbuild so we don't depend on the "slow" Fedora release process to implement new features in bib
RUN dnf install -y dnf-plugins-core \
&& dnf copr enable -y @osbuild/osbuild \