summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2016-09-30 11:38:56 +0200
committerLuke Bennett <lukeeeebennettplus@gmail.com>2016-10-14 14:02:34 +0100
commitaef739605987dc70424b83c56ba393462520af52 (patch)
tree862d4b36ba6031bc6ba127561069edc0c51999aa
parent6d48c489d93d6dcbdfd955b7456d97ba6cdb23d1 (diff)
downloadgitlab-ce-aef739605987dc70424b83c56ba393462520af52.tar.gz
Cache gems in CI on tags
-rw-r--r--.gitlab-ci.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 62e06683124..7d19f55aca3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -339,3 +339,16 @@ pages:
- public
only:
- master
+
+# Insurance in case a gem needed by one of our releases gets yanked from
+# rubygems.org in the future.
+cache gems:
+ only:
+ - tags
+ variables:
+ SETUP_DB: "false"
+ script:
+ - bundle package --all --all-platforms
+ artifacts:
+ paths:
+ - vendor/cache