From 5bd9ff1ea4ff69fe3efd990e43d442b7bcb75b99 Mon Sep 17 00:00:00 2001 From: Finn Date: Sat, 30 Jan 2021 01:57:58 -0800 Subject: [PATCH] Generate changelog before building deb --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: