Build .deb package in CI

This commit is contained in:
Tulir Asokan 2020-05-10 20:49:35 +03:00
parent 19175b487e
commit 0b80cb9444

View File

@ -1,3 +1,7 @@
stages:
- build
- package
default: default:
before_script: before_script:
- mkdir -p .cache - mkdir -p .cache
@ -35,3 +39,13 @@ windows/amd64:
artifacts: artifacts:
paths: paths:
- gomuks.exe - gomuks.exe
debian package:
image: debian
stage: package
dependencies:
- linux/amd64
script:
- mkdir -p deb/usr/bin
- cp gomuks deb/usr/bin/gomuks
- dpkg-deb --build deb gomuks-$(cat deb/DEBIAN/control | grep Version | awk '{ print $2 }').deb