Commit 4819c058 authored by Mayra Cabrera's avatar Mayra Cabrera

Merge branch 'remove-db-migrate-job' into 'master'

Temporarily disable db:migrate-from-v12.10 job

See merge request gitlab-org/gitlab!57423
parents 842908f3 4d6d83e2
......@@ -359,32 +359,34 @@ db:check-migrations:
- scripts/validate_migration_schema
allow_failure: true
db:migrate-from-v12.10.0:
extends: .db-job-base
variables:
SETUP_DB: "false"
script:
- export PROJECT_TO_CHECKOUT="gitlab"
- export TAG_TO_CHECKOUT="v12.10.0-ee"
- '[[ -d "ee/" ]] || export PROJECT_TO_CHECKOUT="gitlab-foss"'
- '[[ -d "ee/" ]] || export TAG_TO_CHECKOUT="v12.10.0"'
- retry 'git fetch https://gitlab.com/gitlab-org/$PROJECT_TO_CHECKOUT.git $TAG_TO_CHECKOUT'
- git checkout -f FETCH_HEAD
- sed -i -e "s/gem 'grpc', '~> 1.24.0'/gem 'grpc', '~> 1.30.2'/" Gemfile # Update gRPC for Ruby 2.7
- sed -i -e "s/gem 'google-protobuf', '~> 3.8.0'/gem 'google-protobuf', '~> 3.12.0'/" Gemfile
- gem install bundler:1.17.3
- bundle update google-protobuf grpc bootsnap
- bundle install $BUNDLE_INSTALL_FLAGS
- date
- cp config/gitlab.yml.example config/gitlab.yml
- bundle exec rake db:drop db:create db:structure:load db:seed_fu
- date
- git checkout -f $CI_COMMIT_SHA
- bundle install $BUNDLE_INSTALL_FLAGS
- date
- . scripts/prepare_build.sh
- date
- bundle exec rake db:migrate
# Temporarily disabled due to failures in https://gitlab.com/gitlab-org/gitlab/-/issues/325838
# db:migrate-from-v12.10.0:
# extends: .db-job-base
# variables:
# SETUP_DB: "false"
# script:
# - export PROJECT_TO_CHECKOUT="gitlab"
# - export TAG_TO_CHECKOUT="v12.10.0-ee"
# - '[[ -d "ee/" ]] || export PROJECT_TO_CHECKOUT="gitlab-foss"'
# - '[[ -d "ee/" ]] || export TAG_TO_CHECKOUT="v12.10.0"'
# - retry 'git fetch https://gitlab.com/gitlab-org/$PROJECT_TO_CHECKOUT.git $TAG_TO_CHECKOUT'
# - git checkout -f FETCH_HEAD
# - sed -i -e "s/gem 'grpc', '~> 1.24.0'/gem 'grpc', '~> 1.30.2'/" Gemfile # Update gRPC for Ruby 2.7
# - sed -i -e "s/gem 'google-protobuf', '~> 3.8.0'/gem 'google-protobuf', '~> 3.12.0'/" Gemfile
# - gem install bundler:1.17.3
# - bundle update google-protobuf grpc bootsnap
# - bundle install $BUNDLE_INSTALL_FLAGS
# - date
# - cp config/gitlab.yml.example config/gitlab.yml
# - bundle exec rake db:drop db:create db:structure:load db:seed_fu
# - date
# - git checkout -f $CI_COMMIT_SHA
# - bundle install $BUNDLE_INSTALL_FLAGS
# - date
# - . scripts/prepare_build.sh
# - date
# - bundle exec rake db:migrate
db:rollback:
extends: .db-job-base
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment