summaryrefslogtreecommitdiff
path: root/.ci/linux-build.sh
diff options
context:
space:
mode:
authorDavid Marchand <david.marchand@redhat.com>2022-04-04 16:24:39 +0200
committerDavid Marchand <david.marchand@redhat.com>2022-04-06 20:57:33 +0200
commitb35c4b0aa2bcd242d8b1989acaa41fed154045c7 (patch)
tree3c8a86b3639dc937a0d9bdeb74d340ec7a1dc9cd /.ci/linux-build.sh
parent442876b2d8fde9b7cdf86464e8a458e3bd8dd210 (diff)
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>
Diffstat (limited to '.ci/linux-build.sh')
-rwxr-xr-x.ci/linux-build.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh
index 69940dec8b..774a1441bf 100755
--- a/.ci/linux-build.sh
+++ b/.ci/linux-build.sh
@@ -1,5 +1,8 @@
#!/bin/sh -xe
+# Builds are run as root in containers, no need for sudo
+[ "$(id -u)" != '0' ] || alias sudo=
+
on_error() {
if [ $? = 0 ]; then
exit