richardphibel / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
17aa40
From a8fd8d157c832ddad34a9a3e372579c58261f7fb Mon Sep 17 00:00:00 2001
eb8b6e
From: Frantisek Sumsal <frantisek@sumsal.cz>
eb8b6e
Date: Mon, 29 Nov 2021 13:59:41 +0100
eb8b6e
Subject: [PATCH] ci: pass the $GITHUB_ACTIONS variable to the CentOS container
eb8b6e
eb8b6e
so we can properly skip tests which are problematic when running in GH
eb8b6e
Actions.
eb8b6e
17aa40
Related: #2017033
eb8b6e
rhel-only
eb8b6e
---
eb8b6e
 .github/workflows/unit_tests.sh | 2 +-
eb8b6e
 1 file changed, 1 insertion(+), 1 deletion(-)
eb8b6e
eb8b6e
diff --git a/.github/workflows/unit_tests.sh b/.github/workflows/unit_tests.sh
eb8b6e
index 814870e7a0..c1311310fb 100755
eb8b6e
--- a/.github/workflows/unit_tests.sh
eb8b6e
+++ b/.github/workflows/unit_tests.sh
eb8b6e
@@ -131,7 +131,7 @@ for phase in "${PHASES[@]}"; do
eb8b6e
             # Pull a Docker image and start a new container
eb8b6e
             docker pull quay.io/centos/centos:$CENTOS_RELEASE
eb8b6e
             info "Starting container $CONT_NAME"
eb8b6e
-            $DOCKER_RUN -v $REPO_ROOT:/build:rw \
eb8b6e
+            $DOCKER_RUN -v $REPO_ROOT:/build:rw -e GITHUB_ACTIONS="$GITHUB_ACTIONS" \
eb8b6e
                         -w /build --privileged=true --name $CONT_NAME \
eb8b6e
                         -dit --net=host quay.io/centos/centos:$CENTOS_RELEASE /sbin/init
eb8b6e