diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2f74dfc..7a7ee8f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -50,9 +50,10 @@ build:x86:deb: image: debian:latest before_script: - apt-get update - - apt-get install -y dpkg-dev dh-golang golang-any golang-github-spf13-cobra-dev golang-github-spf13-viper-dev + - apt-get install -y git-buildpackage dh-golang golang-any golang-github-spf13-cobra-dev golang-github-spf13-viper-dev - apt-get install -y ./*.deb script: + - gbp dch --ignore-branch --debian-tag="%(version)s" --git-author --new-version="$(git describe --abbrev=0)+git$(date +%Y-%m-%d)r$(git rev-parse --short=8 HEAD).$(git rev-list $(git describe --abbrev=0)..HEAD --count)" - dpkg-buildpackage -us -uc -b - mv ../*.deb . needs: