fix: gitlab ci dpkg based build.

This commit is contained in:
Alexandre Pujol 2023-04-23 23:51:59 +01:00
parent 03be191442
commit 63751ea66f
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC

View File

@ -72,12 +72,12 @@ debian:
stage: build stage: build
image: registry.gitlab.com/roddhjav/builders/debian image: registry.gitlab.com/roddhjav/builders/debian
script: script:
- 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" - 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
- dch --newversion=$VERSION --urgency=medium --distribution=stable --controlmaint "Release $VERSION"
- dpkg-buildpackage -b -d --no-sign - dpkg-buildpackage -b -d --no-sign
- mv ../*.deb $PKGDEST/ - mv ../*.deb $PKGDEST/
artifacts: artifacts: