From bc70195bc711b4b42ca77713d1219862bd021ab5 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sat, 15 Oct 2022 23:37:10 +0100 Subject: [PATCH] ci(gitlab): add ubuntu build. --- .gitlab-ci.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 360ce717..53352e91 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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