summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2016-09-30 11:38:56 +0200
committerJacob Vosmaer <jacob@gitlab.com>2016-09-30 14:41:06 +0200
commitd90166172e91dbd63062c24d61e6566e57079a45 (patch)
tree9e9b9cb02f1219429ccba2937b6e9a8d4cd1691f /.gitlab-ci.yml
parent7d48778c4f35e61fd3e6e9bfbb476c27f9fb4602 (diff)
downloadgitlab-ce-d90166172e91dbd63062c24d61e6566e57079a45.tar.gz
Cache gems in CI on tags
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3f3873e57c1..899e0b6b105 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -332,3 +332,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