mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 07:54:17 +01:00
ci(gitlab): add ubuntu build.
This commit is contained in:
parent
3ddf2f273a
commit
bc70195bc7
@ -71,7 +71,7 @@ debian:
|
|||||||
stage: build
|
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="0.$(git rev-list --count HEAD)-1"
|
||||||
- mkdir -p "$PKGDEST"
|
- mkdir -p "$PKGDEST"
|
||||||
- sudo apt-get update -q && sudo apt-get install -y golang-go lsb-release rsync
|
- 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"
|
- dch --newversion=$VERSION --urgency=medium --distribution=stable --controlmaint "Release $VERSION"
|
||||||
@ -82,6 +82,11 @@ debian:
|
|||||||
paths:
|
paths:
|
||||||
- $PKGDEST/*.deb
|
- $PKGDEST/*.deb
|
||||||
|
|
||||||
|
ubuntu:
|
||||||
|
extends: debian
|
||||||
|
variables:
|
||||||
|
DIST: ubuntu
|
||||||
|
|
||||||
|
|
||||||
# Profile Preprocessing
|
# Profile Preprocessing
|
||||||
# ---------------------
|
# ---------------------
|
||||||
@ -110,3 +115,14 @@ preprocess-debian:
|
|||||||
- apt-get install -y apparmor apparmor-profiles
|
- apt-get install -y apparmor apparmor-profiles
|
||||||
- dpkg --install $PKGDEST/*
|
- dpkg --install $PKGDEST/*
|
||||||
- apparmor_parser --preprocess /etc/apparmor.d 1> /dev/null
|
- 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