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: stages:
- lint - lint
- package - build
- preprocess - preprocess
@ -26,7 +26,7 @@ bash:
# ------------- # -------------
archlinux: archlinux:
stage: package stage: build
image: registry.gitlab.com/archlex/packages/builders/arch image: registry.gitlab.com/archlex/packages/builders/arch
script: script:
- updpkgsums - updpkgsums
@ -38,7 +38,7 @@ archlinux:
- $PKGDEST/* - $PKGDEST/*
debian: debian:
stage: package stage: build
image: registry.gitlab.com/archlex/packages/builders/debian image: registry.gitlab.com/archlex/packages/builders/debian
script: script:
- VERSION="$(date +%y.%m%d)-1" - VERSION="$(date +%y.%m%d)-1"
@ -56,7 +56,7 @@ debian:
# Profile Preprocessing # Profile Preprocessing
# --------------------- # ---------------------
apparmor: preprocess-archlinux:
stage: preprocess stage: preprocess
image: archlinux image: archlinux
dependencies: dependencies:
@ -68,3 +68,14 @@ apparmor:
--overwrite etc/apparmor.d/tunables/xdg-user-dirs --overwrite etc/apparmor.d/tunables/xdg-user-dirs
$PKGDEST/* $PKGDEST/*
- apparmor_parser --preprocess /etc/apparmor.d 1> /dev/null - 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