diff options
author | Robert Speicher <robert@gitlab.com> | 2016-10-13 13:02:11 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2016-10-13 13:02:11 +0000 |
commit | 2362dfee686ab715ef6a3bd00b389ab321e7a728 (patch) | |
tree | 862d4b36ba6031bc6ba127561069edc0c51999aa /.gitlab-ci.yml | |
parent | 6d48c489d93d6dcbdfd955b7456d97ba6cdb23d1 (diff) | |
parent | d90166172e91dbd63062c24d61e6566e57079a45 (diff) | |
download | gitlab-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.yml | 13 |
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 |