From 6fba8a46fc4ca10794388df9c4e9e4160901c91e Mon Sep 17 00:00:00 2001
From: Tomas Krizek <tomas.krizek@nic.cz>
Date: Wed, 23 Jun 2021 15:38:41 +0200
Subject: [PATCH] ci: add rocky-8 pkgtest

---
 ci/pkgtest.yaml | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/ci/pkgtest.yaml b/ci/pkgtest.yaml
index 2e5a239f1..0623eba3f 100644
--- a/ci/pkgtest.yaml
+++ b/ci/pkgtest.yaml
@@ -105,6 +105,14 @@ opensuse-15.3:pkgbuild:
     - zypper install -y rpm-build python3-pip
     - *apkgbuild
 
+rocky-8:pkgbuild:
+  <<: *pkgbuild
+  image: $CI_REGISTRY/labs/lxc-gitlab-runner/rocky-8
+  script:
+    - dnf install -y rpm-build python3-pip epel-release dnf-plugins-core
+    - dnf config-manager --set-enabled powertools
+    - *apkgbuild
+
 ubuntu-18.04:pkgbuild:
   <<: *pkgbuild
   image: $CI_REGISTRY/labs/lxc-gitlab-runner/ubuntu-18.04
@@ -259,6 +267,18 @@ opensuse-15.3:pkgtest:
     - systemctl start kresd@1
     - kdig @127.0.0.1 nic.cz | grep -qi NOERROR
 
+rocky-8:pkgtest:
+  <<: *pkgtest
+  needs:
+    - rocky-8:pkgbuild
+  image: $CI_REGISTRY/labs/lxc-gitlab-runner/rocky-8
+  script:
+    - dnf install -y epel-release
+    - dnf install -y knot-utils findutils
+    - dnf install -y $(find ./pkg/pkgs -name '*.rpm' | grep -v module)
+    - systemctl start kresd@1
+    - kdig @127.0.0.1 nic.cz | grep -qi NOERROR
+
 ubuntu-18.04:pkgtest:
   <<: *pkgtest
   needs:
-- 
GitLab