aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2020-05-10 21:02:12 +0300
committerTulir Asokan <tulir@maunium.net>2020-05-10 21:02:12 +0300
commit55cf268d6ab3cbde415aff0c010ee5a1c0aaa91f (patch)
treed44e45697e4a1eb58601927ce4c867fb11851d43
parentaf6406e4c80b17cece619e4b53e9b69908c214ac (diff)
Only build .deb for releases
-rw-r--r--.gitlab-ci.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4d3b252..22eeace 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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