ci(gitlab): add ubuntu build.

This commit is contained in:
Alexandre Pujol 2022-10-15 23:37:10 +01:00
parent 3ddf2f273a
commit bc70195bc7
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC

View File

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