Skip to content
Snippets Groups Projects
Commit 5e6d09ed authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

Just set GITLAB_DATABASE in the script

parent 1b14a8d0
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -315,7 +315,6 @@ rake mysql db:rollback:
/home/git/repositories/gitlab-org/gitlab-test.git
- bundle exec rake db:setup db:seed_fu
variables:
GITLAB_DATABASE: $CI_JOB_NAME[1]
SIZE: "1"
SETUP_DB: "false"
RAILS_ENV: "development"
Loading
Loading
@@ -435,7 +434,6 @@ bundler:audit:
- source scripts/prepare_build.sh
- bundle exec rake db:migrate
variables:
GITLAB_DATABASE: $CI_JOB_NAME[1]
SETUP_DB: "false"
 
migration pg paths:
Loading
Loading
Loading
Loading
@@ -2,12 +2,8 @@
 
. scripts/utils.sh
 
echo $CI_JOB_NAME
job_name=$(echo $CI_JOB_NAME | cut -f2 -d' ')
echo $job_name
export SETUP_DB=${SETUP_DB:-true}
export GITLAB_DATABASE=${GITLAB_DATABASE:-$job_name}
export GITLAB_DATABASE=$(echo $CI_JOB_NAME | cut -f2 -d' ')
export USE_BUNDLE_INSTALL=${USE_BUNDLE_INSTALL:-true}
 
if [ "$GITLAB_DATABASE" != 'mysql' ]; then
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment