ci: improve debian & ubuntu build jobs.

This commit is contained in:
Alexandre Pujol 2023-09-19 20:45:21 +01:00
parent b34356ca03
commit f919c7b462
Failed to generate hash of commit

View file

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