ci: Add git revision and CI pipeline number to .deb artifacts

This commit is contained in:
Dorota Czaplejewicz
2021-12-05 16:57:28 +00:00
parent e776bf005e
commit cd869e323e

View File

@ -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 .