Generate changelog before building deb

This commit is contained in:
Finn 2021-01-30 01:57:58 -08:00
parent 36c9578df3
commit 5bd9ff1ea4

View file

@ -50,9 +50,10 @@ build:x86:deb:
image: debian:latest image: debian:latest
before_script: before_script:
- apt-get update - 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 - apt-get install -y ./*.deb
script: 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 - dpkg-buildpackage -us -uc -b
- mv ../*.deb . - mv ../*.deb .
needs: needs: