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:
|
script:
|
||||||
- sudo chown -R build:build /builds/
|
- sudo chown -R build:build /builds/
|
||||||
- git config --global --add safe.directory $CI_PROJECT_DIR
|
- git config --global --add safe.directory $CI_PROJECT_DIR
|
||||||
- VERSION="0.$(git rev-list --count HEAD)-1"
|
|
||||||
- mkdir -p "$PKGDEST"
|
- mkdir -p "$PKGDEST"
|
||||||
- sudo apt-get update -q && sudo apt-get install -y config-package-dev rsync
|
- sudo apt-get update -q && sudo apt-get install -y config-package-dev rsync
|
||||||
- sudo apt-get install -y -t bullseye-backports golang-go
|
- sudo apt-get install -y -t bullseye-backports golang-go
|
||||||
- dpkg-buildpackage -b -d --no-sign
|
- bash dists/build.sh dpkg
|
||||||
- mv ../*.deb $PKGDEST/
|
|
||||||
artifacts:
|
artifacts:
|
||||||
expire_in: 1 day
|
expire_in: 1 day
|
||||||
paths:
|
paths:
|
||||||
- $PKGDEST/*.deb
|
- $PKGDEST/*.deb
|
||||||
|
|
||||||
ubuntu:
|
ubuntu:
|
||||||
extends: debian
|
stage: build
|
||||||
variables:
|
image: registry.gitlab.com/roddhjav/builders/ubuntu
|
||||||
DISTRIBUTION: 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:
|
opensuse:
|
||||||
stage: build
|
stage: build
|
||||||
|
|
Loading…
Reference in a new issue