aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2020-05-10 20:49:35 +0300
committerTulir Asokan <tulir@maunium.net>2020-05-10 20:49:35 +0300
commit0b80cb9444e2aa0f2b41308496fb74f14c769767 (patch)
tree2c8216c13960d119238273978769af82bb71f82b
parent19175b487e9a39106dc7de10ee39e63867ec0c6d (diff)
Build .deb package in CI
-rw-r--r--.gitlab-ci.yml14
1 files changed, 14 insertions, 0 deletions
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