From 0e3d480de7cf36421b1dbd81d89d8a2773d023a6 Mon Sep 17 00:00:00 2001 From: Gris Ge Date: Fri, 4 Feb 2022 20:36:20 +0100 Subject: [PATCH] CI: Enable CentOS 9 stream integration test Signed-off-by: Gris Ge --- .github/Dockerfile.c9s-network-role | 14 ++++++++++++++ .github/run_test.sh | 4 ++++ .github/workflows/integration.yml | 1 + 3 files changed, 19 insertions(+) create mode 100644 .github/Dockerfile.c9s-network-role diff --git a/.github/Dockerfile.c9s-network-role b/.github/Dockerfile.c9s-network-role new file mode 100644 index 0000000..4588676 --- /dev/null +++ b/.github/Dockerfile.c9s-network-role @@ -0,0 +1,14 @@ +FROM quay.io/centos/centos:stream9-development + +RUN dnf -y install dnf-plugins-core && \ + dnf config-manager --set-enabled crb && \ + dnf -y upgrade && \ + dnf -y install NetworkManager NetworkManager-wifi \ + procps-ng iproute openssh-server openssh-clients systemd-udev \ + dnsmasq wpa_supplicant openssl ethtool iputils python3-gobject-base \ + python3-pip python3-jmespath && \ + pip3 install ansible==2.9.* + +VOLUME [ "/sys/fs/cgroup" ] + +CMD ["/usr/sbin/init"] diff --git a/.github/run_test.sh b/.github/run_test.sh index b05d0f1..99a5202 100755 --- a/.github/run_test.sh +++ b/.github/run_test.sh @@ -5,6 +5,7 @@ set -euo pipefail TEST_SOURCE_DIR="/network-role" C8S_CONTAINER_IMAGE="quay.io/linux-system-roles/c8s-network-role" C7_CONTAINER_IMAGE="quay.io/linux-system-roles/c7-network-role" +C9S_CONTAINER_IMAGE="quay.io/linux-system-roles/c9s-network-role" PODMAN_OPTS="--systemd=true --privileged" # FIXME: test_wireless has been removed because is not supported on CI @@ -56,6 +57,9 @@ case $OS_TYPE in "c7") CONTAINER_IMAGE=$C7_CONTAINER_IMAGE ;; + "c9s") + CONTAINER_IMAGE=$C9S_CONTAINER_IMAGE + ;; *) echo "Unsupported OS type $OS_TYPE" exit 1 diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 05be93e..f5ce4bc 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -16,6 +16,7 @@ jobs: include: - os: "c7" - os: "c8s" + - os: "c9s" steps: - uses: actions/checkout@v2