summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2016-10-13 13:02:11 +0000
committerRobert Speicher <robert@gitlab.com>2016-10-13 13:02:11 +0000
commit2362dfee686ab715ef6a3bd00b389ab321e7a728 (patch)
tree862d4b36ba6031bc6ba127561069edc0c51999aa /.gitlab-ci.yml
parent6d48c489d93d6dcbdfd955b7456d97ba6cdb23d1 (diff)
parentd90166172e91dbd63062c24d61e6566e57079a45 (diff)
downloadgitlab-ce-2362dfee686ab715ef6a3bd00b389ab321e7a728.tar.gz
Merge branch 'cache-gems-for-tags' into 'master'
Keep a copy of gems needed by our releases as CI artifacts This is meant as insurance in case a gem GitLab needs is ever removed from rubygems.org. After we merge this, all future GitLab tags will have a CI artifact archive containing all the gems (for all platforms) specified in Gemfile.lock for that revision. Only runs on tags (so we don't constantly create 50MB gem cache bundles). See merge request !6617
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 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