Generate changelog before building deb
This commit is contained in:
parent
36c9578df3
commit
5bd9ff1ea4
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue