Unify `RUBY_MAJOR_VERSION`/`RUBY_MINOR_VERSION` usage to allow Ruby 3 transition
Context
The initial intent was to point to this branch from the main repo's Ruby 3 branch: gitlab-org/gitlab!70798 (closed) to run QA + review app.
The current state
Instead of keeping this in its own branch, we could unify the usage of RUBY_MAJOR_VERSION
/RUBY_MINOR_VERSION
As suggested by Remy:
Based on https://docs.gitlab.com/ee/ci/variables/index.html#cicd-variable-precedence, if we pass the
RUBY_VERSION
variable when triggering the downstreamCNG-mirror
pipeline from GitLab, it should take precedence over the default set here.
The next steps
- (This MR) We unify the usage of
RUBY_MAJOR_VERSION
/RUBY_MINOR_VERSION
, in this MR, but keep Ruby2.7
in CNGmaster
. This will allow CNG builds for Ruby 3 and will keep CNGmaster
green for 2.7. - We set
RUBY_VERSION
from the GitLab Ruby 3 MR to3.0.3
. We no longer use theCNG_BRANCH
there. - After the complete transition to Ruby 3, we replace the
RUBY_VERSION
value in this repository.
Edited by Aleksei Lipniagov