Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-07-12 21:08:58 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-07-12 21:08:58 +0300
commit31f59b55c63f6a7add79c5987731387ae3a4f7ab (patch)
tree3786af9493ae5634b35098a184993b2f134a5286 /gems/gem.gitlab-ci.yml
parent8562dfae56800770e729dcb8215ebf7e1e29a55f (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'gems/gem.gitlab-ci.yml')
-rw-r--r--gems/gem.gitlab-ci.yml11
1 files changed, 6 insertions, 5 deletions
diff --git a/gems/gem.gitlab-ci.yml b/gems/gem.gitlab-ci.yml
index 8a0518fa415..10905d8c243 100644
--- a/gems/gem.gitlab-ci.yml
+++ b/gems/gem.gitlab-ci.yml
@@ -1,4 +1,5 @@
-# The template generates jobs for gems vendored in the main GitLab project under `gems/`.
+# The template generates jobs for gems vendored in the main GitLab project
+# under `gem_path_prefix` (defaults to `gems/`).
#
# Inputs
# - `gem_name`: The name of the gem, i.e. if the gem is located at `gems/gitlab-rspec`, `gem_name` should be set to `gitlab-rspec`.
@@ -17,13 +18,15 @@ workflow:
PIPELINE_NAME: '[$[[inputs.gem_name]] gem] Ruby $RUBY_VERSION $CI_MERGE_REQUEST_EVENT_TYPE MR pipeline'
variables:
+ BUNDLE_PATH: "vendor"
+ BUNDLE_FROZEN: "true"
GIT_DEPTH: "20"
# 'GIT_STRATEGY: clone' optimizes the pack-objects cache hit ratio
GIT_STRATEGY: "clone"
GIT_SUBMODULE_STRATEGY: "none"
GET_SOURCES_ATTEMPTS: "3"
# Default Ruby version for jobs that don't use .ruby_matrix
- RUBY_VERSION: "3.1"
+ RUBY_VERSION: "3.0"
default:
image: "ruby:${RUBY_VERSION}"
@@ -35,9 +38,7 @@ default:
- cd $[[inputs.gem_path_prefix]]$[[inputs.gem_name]]
- ruby -v # Print out ruby version for debugging
- bundle_version=$(grep -A 1 "BUNDLED WITH" Gemfile.lock | tail -n 1 | sed -e 's/[[:space:]]//')
- - gem install bundler --version $bundle_version --no-document # Bundler is not installed with the image
- - bundle config set --local path 'vendor' # Install dependencies into ./vendor/ruby
- - bundle config set --local frozen 'true' # Disallow Gemfile.lock changes on CI
+ - gem install bundler --version "$bundle_version" --no-document # Bundler is not installed with the image
- bundle config # Show bundler configuration
- bundle install --jobs=$(nproc) --retry=3