Only build .deb for releases

This commit is contained in:
Tulir Asokan 2020-05-10 21:02:12 +03:00
parent af6406e4c8
commit 55cf268d6a

View File

@ -45,8 +45,13 @@ debian:
stage: package
dependencies:
- linux/amd64
only:
- tags
script:
- mkdir -p deb/usr/bin
- cp gomuks deb/usr/bin/gomuks
- chmod -R -s deb/DEBIAN && chmod -R 0755 deb/DEBIAN
- dpkg-deb --build deb gomuks-$(cat deb/DEBIAN/control | grep Version | awk '{ print $2 }').deb
- dpkg-deb --build deb gomuks.deb
artifacts:
paths:
- gomuks.deb