ci: add rpm pkg build.

This commit is contained in:
Alexandre Pujol 2023-09-19 20:16:55 +01:00
parent 7f87b69bf7
commit 55d46631da
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
2 changed files with 20 additions and 7 deletions

View file

@ -101,6 +101,18 @@ ubuntu:
variables:
DISTRIBUTION: ubuntu
opensuse:
stage: build
image: registry.gitlab.com/roddhjav/builders/opensuse
script:
- mkdir -p "$PKGDEST"
- sudo zypper install -y distribution-release golang-packaging rsync
- bash dists/build.sh rpm
artifacts:
expire_in: 1 day
paths:
- $PKGDEST/*.rpm
# Profile Preprocessing
# ---------------------
@ -140,10 +152,11 @@ preprocess-ubuntu:
preprocess-opensuse:
stage: preprocess
image: opensuse/tumbleweed
dependencies:
- opensuse
script:
- zypper install -y apparmor-profiles go git rsync util-linux findutils make
- make
- make install
- zypper install -y apparmor-profiles
- rpm -i $PKGDEST/*
- apparmor_parser --preprocess /etc/apparmor.d 1> /dev/null