mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-12-25 06:27:49 +01:00
ci: improve debian & ubuntu build jobs.
This commit is contained in:
parent
b34356ca03
commit
f919c7b462
1 changed files with 13 additions and 6 deletions
|
@ -85,21 +85,28 @@ debian:
|
|||
script:
|
||||
- sudo chown -R build:build /builds/
|
||||
- git config --global --add safe.directory $CI_PROJECT_DIR
|
||||
- VERSION="0.$(git rev-list --count HEAD)-1"
|
||||
- mkdir -p "$PKGDEST"
|
||||
- sudo apt-get update -q && sudo apt-get install -y config-package-dev rsync
|
||||
- sudo apt-get install -y -t bullseye-backports golang-go
|
||||
- dpkg-buildpackage -b -d --no-sign
|
||||
- mv ../*.deb $PKGDEST/
|
||||
- bash dists/build.sh dpkg
|
||||
artifacts:
|
||||
expire_in: 1 day
|
||||
paths:
|
||||
- $PKGDEST/*.deb
|
||||
|
||||
ubuntu:
|
||||
extends: debian
|
||||
variables:
|
||||
DISTRIBUTION: ubuntu
|
||||
stage: build
|
||||
image: registry.gitlab.com/roddhjav/builders/ubuntu
|
||||
script:
|
||||
- sudo chown -R build:build /builds/
|
||||
- git config --global --add safe.directory $CI_PROJECT_DIR
|
||||
- mkdir -p "$PKGDEST"
|
||||
- sudo apt-get update -q && sudo apt-get install -y config-package-dev rsync golang-go
|
||||
- bash dists/build.sh dpkg
|
||||
artifacts:
|
||||
expire_in: 1 day
|
||||
paths:
|
||||
- $PKGDEST/*.deb
|
||||
|
||||
opensuse:
|
||||
stage: build
|
||||
|
|
Loading…
Reference in a new issue