Changes required for the Rails single codebase migration

The Rails single codebase migration is on its way (https://gitlab.com/gitlab-org/gitlab-ee/issues/13304).

Critical changes

Following are the critical changes in this project that I identified, but I could be wrong and I'm certainly missing some:

  • .gitlab-ci.yml
  • ci_files/variables.yml
  • gitlab-rails/Dockerfile.erb

Non-critical changes

  • In docs/: replace gitlab-ce with gitlab-foss and gitlab-ee with gitlab?

Full list of gitlab-ce ocurrences:

.gitlab-ci.yml:    - build_if_needed --build-arg "GITLAB_EDITION=gitlab-ce"
ci_files/variables.yml:  CE_PROJECT: "gitlab-ce"
docs/build.md:and build both gitlab-ce and gitlab-ee versions.
docs/build.md:For tagging specific versions of GitLab as part of our regular automated release process, the CI pipeline is triggered from the gitlab-ce and gitlab-ee repos when tagged, and those repos pass
gitlab-rails/patches/yarn.patch:curl -s https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/14543.diff | patch && \

Full list of gitlab-ee ocurrences:

.gitlab-ci.yml:    - build_if_needed --build-arg "GITLAB_EDITION=gitlab-ee"
ci_files/variables.yml:  EE_PROJECT: "gitlab-ee"
docs/build.md:and build both gitlab-ce and gitlab-ee versions.
docs/build.md:For tagging specific versions of GitLab as part of our regular automated release process, the CI pipeline is triggered from the gitlab-ce and gitlab-ee repos when tagged, and those repos pass
gitlab-rails/Dockerfile.erb:ARG GITLAB_EDITION=gitlab-ee
gitlab-rails/Dockerfile.erb:ARG ASSETS_IMAGE="registry.gitlab.com/gitlab-org/gitlab-ee/gitlab-assets-ee:${GITLAB_VERSION}"
gitlab-rails/Dockerfile.erb:ARG GITLAB_PROJECT=gitlab-ee
gitlab-rails/scripts/custom-instance-setup:# A proper fix is being tracked in: https://gitlab.com/gitlab-org/gitlab-ee/issues/4156