summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorJuan J. Martínez <jjm@usebox.net>2021-07-09 08:55:34 +0000
committerJuan J. Martinez <jjm@usebox.net>2021-07-22 19:49:53 +0100
commitb6a9baa2a952ad62aeb74fd045a322670064feb8 (patch)
tree47145c46d82cf78b52f9ad30366b4b2e1e40236f /.gitlab-ci.yml
parentfc7d06521b9c39bf209b8827be7671197761a28a (diff)
downloadspacebeans-b6a9baa2a952ad62aeb74fd045a322670064feb8.tar.gz
spacebeans-b6a9baa2a952ad62aeb74fd045a322670064feb8.zip
Only package on release
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml8
1 files changed, 6 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c28dd3e..afade77 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,7 +2,7 @@ image: openjdk:8
stages:
- test
- - package
+ - release
cache:
paths:
@@ -14,11 +14,15 @@ test:
- ./mill -D ivy.default.ivy.user.dir=.cache server.test
package:
- stage: package
+ stage: release
script:
- ./mill -D ivy.default.ivy.user.dir=.cache server.assembly
artifacts:
paths:
- out/server/assembly/dest/*.jar
+ when: on_success
+ expire_in: never
only:
- master
+ rules:
+ - if: $CI_COMMIT_TAG