From 0b80cb9444e2aa0f2b41308496fb74f14c769767 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 10 May 2020 20:49:35 +0300 Subject: Build .deb package in CI --- .gitlab-ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2f6fc29..b08e911 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,7 @@ +stages: +- build +- package + default: before_script: - mkdir -p .cache @@ -35,3 +39,13 @@ windows/amd64: artifacts: paths: - 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 -- cgit v1.2.3