CI: add preprocessing for Debian.

This commit is contained in:
Alexandre Pujol 2021-09-27 19:20:27 +01:00
parent 8334473902
commit 8e9ccc3bf7
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC

View File

@ -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