From cd869e323e4c011a523c5b232d4a887c0a3fa5ab Mon Sep 17 00:00:00 2001 From: Dorota Czaplejewicz Date: Sun, 5 Dec 2021 16:57:28 +0000 Subject: [PATCH] ci: Add git revision and CI pipeline number to .deb artifacts --- .gitlab-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8ee01735..0a6be58e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -47,6 +47,9 @@ build_deb: - rm -f ../*.deb - apt-get -y build-dep . - apt-get -y install devscripts + - REV=$(git log -1 --format=%h) + - VER=$(dpkg-parsechangelog -SVersion) + - 'DEBFULLNAME="Librem5 CI" EMAIL="librem5-builds@lists.community.puri.sm" dch -v"$VER+librem5ci$CI_PIPELINE_ID.$REV" "$MSG"' - debuild -i -us -uc -b - cp ../*.deb . @@ -61,6 +64,9 @@ build_deb:arm64: - rm -f ../*.deb - apt-get -y build-dep . - apt-get -y install devscripts + - REV=$(git log -1 --format=%h) + - VER=$(dpkg-parsechangelog -SVersion) + - 'DEBFULLNAME="Librem5 CI" EMAIL="librem5-builds@lists.community.puri.sm" dch -v"$VER+librem5ci$CI_PIPELINE_ID.$REV" "$MSG"' - debuild -i -us -uc -b - cp ../*.deb .