diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/prepare_build.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/prepare_build.sh b/scripts/prepare_build.sh index 2b041892eab..48b046116e4 100755 --- a/scripts/prepare_build.sh +++ b/scripts/prepare_build.sh @@ -2,11 +2,15 @@ . 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:-postgresql} +export GITLAB_DATABASE=${GITLAB_DATABASE:-$job_name} export USE_BUNDLE_INSTALL=${USE_BUNDLE_INSTALL:-true} -if [ "$GITLAB_DATABASE" = 'pg' ]; then +if [ "$GITLAB_DATABASE" != 'mysql' ]; then export GITLAB_DATABASE='postgresql' fi |