From f919c7b462eb5785bc4d05f893e1f3f6fa6da6cb Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Tue, 19 Sep 2023 20:45:21 +0100 Subject: [PATCH] ci: improve debian & ubuntu build jobs. --- .gitlab-ci.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9765bba8..50b5c5b9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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