mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
ci(gitlab): add ubuntu build.
This commit is contained in:
parent
3ddf2f273a
commit
bc70195bc7
@ -71,7 +71,7 @@ debian:
|
||||
stage: build
|
||||
image: registry.gitlab.com/archlex/packages/builders/debian
|
||||
script:
|
||||
- VERSION="$(date +%y.%m%d)-1"
|
||||
- VERSION="0.$(git rev-list --count HEAD)-1"
|
||||
- mkdir -p "$PKGDEST"
|
||||
- sudo apt-get update -q && sudo apt-get install -y golang-go lsb-release rsync
|
||||
- dch --newversion=$VERSION --urgency=medium --distribution=stable --controlmaint "Release $VERSION"
|
||||
@ -82,6 +82,11 @@ debian:
|
||||
paths:
|
||||
- $PKGDEST/*.deb
|
||||
|
||||
ubuntu:
|
||||
extends: debian
|
||||
variables:
|
||||
DIST: ubuntu
|
||||
|
||||
|
||||
# Profile Preprocessing
|
||||
# ---------------------
|
||||
@ -110,3 +115,14 @@ preprocess-debian:
|
||||
- apt-get install -y apparmor apparmor-profiles
|
||||
- dpkg --install $PKGDEST/*
|
||||
- apparmor_parser --preprocess /etc/apparmor.d 1> /dev/null
|
||||
|
||||
preprocess-ubuntu:
|
||||
stage: preprocess
|
||||
image: ubuntu
|
||||
dependencies:
|
||||
- ubuntu
|
||||
script:
|
||||
- apt-get update -q
|
||||
- apt-get install -y apparmor apparmor-profiles
|
||||
- dpkg --install $PKGDEST/*
|
||||
- apparmor_parser --preprocess /etc/apparmor.d 1> /dev/null
|
||||
|
Loading…
Reference in New Issue
Block a user