diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-20 13:43:29 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-20 13:43:29 +0300 |
commit | 3b1af5cc7ed2666ff18b718ce5d30fa5a2756674 (patch) | |
tree | 3bc4a40e0ee51ec27eabf917c537033c0c5b14d4 /scripts/prepare_build.sh | |
parent | 9bba14be3f2c211bf79e15769cd9b77bc73a13bc (diff) |
Add latest changes from gitlab-org/gitlab@16-1-stable-eev16.1.0-rc42
Diffstat (limited to 'scripts/prepare_build.sh')
-rw-r--r-- | scripts/prepare_build.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/prepare_build.sh b/scripts/prepare_build.sh index 53674e9cb90..536da48f07f 100644 --- a/scripts/prepare_build.sh +++ b/scripts/prepare_build.sh @@ -53,6 +53,13 @@ sed -i 's|url:.*$|url: redis://redis:6379|g' config/cable.yml cp config/resque.yml.example config/resque.yml sed -i 's|url:.*$|url: redis://redis:6379|g' config/resque.yml +# By default, run CI against Redis Cluster to ensure Redis Cluster compatibility. +# if SETUP_DB is false, the jobs are not backend-related +if [[ "$USE_REDIS_CLUSTER" != "false" ]] && [[ "$SETUP_DB" != "false" ]]; then + cp config/redis.yml.example config/redis.yml + sed -i 's|- .*$|- redis://rediscluster:7001|g' config/redis.yml +fi + if [ "$SETUP_DB" != "false" ]; then setup_db elif getent hosts postgres; then |