diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3127d9448a2f0282115de0a3933849b653bacb0c..1bf068453318614083d10ff8707da48179af06e1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -25,7 +25,7 @@ stages:
   - test
   - respdiff
   - deploy
-  - pkgtest
+  - pkg
 
 .common: &common
   except:
@@ -521,10 +521,35 @@ obs:release:
 
 obs:odvr:
   <<: *obs_trigger
-  stage: pkgtest  # last stage to ensure it doesn't block anything
+  stage: pkg  # last stage to ensure it doesn't block anything
   only:
     - tags
   variables:
     OBS_REPO: knot-resolver-odvr
   when: manual
 # }}}
+
+# pkg {{{
+.setup-apkg: &setup-apkg
+  - python3 -m pip install pipx
+    # TEMPORARY: use test branch until `apkg test` is merged and released
+  - git clone -b test https://gitlab.nic.cz/packaging/apkg.git
+  - python3 -m pipx install -e apkg
+
+pkg_test: &pkg_test
+  stage: pkg
+  tags:
+    - lxc
+    - amd64
+  script:
+    - *setup-apkg
+    - apkg build --build-dep
+
+pkg:debian-11:
+  <<: *pkg_test
+  image: $CI_REGISTRY/labs/lxc-gitlab-runner/debian-11
+
+pkg:fedora-35:
+  <<: *pkg_test
+  image: $CI_REGISTRY/labs/lxc-gitlab-runner/fedora-35
+# }}}