sudo service gitlab_ci stop
sudo su gitlab_ci
cd /home/gitlab_ci/gitlab-ci
git fetch
git checkout 4-1-stable
# For MySQL users
bundle install --without postgres development test --deployment
# For Postgres users
bundle install --without mysql development test --deployment
# Run migrations
bundle exec rake db:migrate RAILS_ENV=production
# Update cron
bundle exec whenever -w
sudo service gitlab_ci start
cd path_to_runner
cat VERSION
To update runners follow this instructions https://github.com/gitlabhq/gitlab-ci-runner#update