ci: add Fedora 35 container in GHA
authorDavid Marchand <david.marchand@redhat.com>
Mon, 4 Apr 2022 14:24:39 +0000 (16:24 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 6 Apr 2022 18:57:33 +0000 (20:57 +0200)
commitb35c4b0aa2bcd242d8b1989acaa41fed154045c7
tree3c8a86b3639dc937a0d9bdeb74d340ec7a1dc9cd
parent442876b2d8fde9b7cdf86464e8a458e3bd8dd210
ci: add Fedora 35 container in GHA

Build DPDK with Fedora 35 containers.

GHA container support does not allow caching images and docker hub
seems to limit image pulls.
On the other hand, the Fedora project hub does not seem to limit them,
so prefer this hub.
Nevertheless, let's try to be good citizens and cache (once a day) a
prepared image for subsequent builds.
This preparation is done in a first prepare-container-images job.
The rpm-container-builds job then depends on it with a 'needs:' tag.

Differences with builds in Ubuntu GHA vm images:
- tasks are run as root in containers, no need for sudo,
- compiler must be explicitly installed,
- GHA artifacts can't contain a ':' in their name, and must be filtered,
- environment variables are not inherited and must be passed explicitly,

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Aaron Conole <aconole@redhat.com>
.ci/linux-build.sh
.ci/linux-setup.sh
.github/workflows/build.yml