]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
CI: add pkg:arch job for Arch linux docs-develop-ci-a-0lthab/deployments/2921
authorJakub Ružička <jakub.ruzicka@nic.cz>
Thu, 16 Nov 2023 14:06:02 +0000 (15:06 +0100)
committerJakub Ružička <jakub.ruzicka@nic.cz>
Fri, 8 Dec 2023 15:39:09 +0000 (16:39 +0100)
makepkg refuses to run as root so we need to run

    apkg build

as a non-root user.

.gitlab-ci.yml

index 6748464681a1a36f5e25522102cfb6c31d01eca6..0798466e5dda49a2503d098faba5fa2c6ff24e17 100644 (file)
@@ -582,6 +582,21 @@ obs:odvr:
     - apkg install --build-dep
     - apkg test --test-dep
 
+.pkg_test_user: &pkg_test_user
+  <<: *pkg_test
+  script:
+    - apkg info cache | grep archive/dev
+    - apkg build-dep --test-dep
+    - apkg make-archive
+    - chgrp -R test .
+    - chmod -R g+rwX .
+    - find -type d -exec chmod g+s {} +
+    - git config core.sharedRepository group
+    - sudo -u test git config --global --add safe.directory '*'
+    - sudo -u test apkg build
+    - apkg install
+    - apkg test
+
 .pkg_test_deb: &pkg_test_deb
   <<: *pkg_test
   <<: *pkg_deb_extras
@@ -635,6 +650,10 @@ pkg:alma-9:
   <<: *pkg_test
   image: $CI_REGISTRY/packaging/apkg/full/alma-9
 
+pkg:arch:
+  <<: *pkg_test_user
+  image: $CI_REGISTRY/packaging/apkg/full/arch
+
 # RHEL 8 derivatives would need more work due to *default* python being old
 #pkg:rocky-8:
 #  <<: *pkg_test