From 8e9ccc3bf709229bd5bb8d17e0caeed55ad543fe Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Mon, 27 Sep 2021 19:20:27 +0100 Subject: [PATCH] CI: add preprocessing for Debian. --- .gitlab-ci.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 77eb5850..71b2478f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,7 +6,7 @@ variables: stages: - lint - - package + - build - preprocess @@ -26,7 +26,7 @@ bash: # ------------- archlinux: - stage: package + stage: build image: registry.gitlab.com/archlex/packages/builders/arch script: - updpkgsums @@ -38,7 +38,7 @@ archlinux: - $PKGDEST/* debian: - stage: package + stage: build image: registry.gitlab.com/archlex/packages/builders/debian script: - VERSION="$(date +%y.%m%d)-1" @@ -56,7 +56,7 @@ debian: # Profile Preprocessing # --------------------- -apparmor: +preprocess-archlinux: stage: preprocess image: archlinux dependencies: @@ -68,3 +68,14 @@ apparmor: --overwrite etc/apparmor.d/tunables/xdg-user-dirs $PKGDEST/* - apparmor_parser --preprocess /etc/apparmor.d 1> /dev/null + +preprocess-debian: + stage: preprocess + image: debian + dependencies: + - debian + script: + - apt-get update -q + - apt-get install -y apparmor + - dpkg --install $PKGDEST/* + - apparmor_parser --preprocess /etc/apparmor.d 1> /dev/null