PageRenderTime 43ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/doc/update/5.4-to-7.8.md

https://gitlab.com/fostertheweb/gitlab-ci
Markdown | 65 lines | 42 code | 23 blank | 0 comment | 0 complexity | 7f955d59080aaadb672991fa7bc8f244 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. # Update from 5.3 to 7.8
  2. ## Notice
  3. With this release we are bumping the GitLab CI version to 7.8 in order to be on par with the current GitLab version and
  4. to avoid naming confusion.
  5. __GitLab CI 7.8 requires GitLab 7.8 or higher and GitLab CI Runner v5__
  6. ### 1. stop CI server
  7. sudo service gitlab_ci stop
  8. ### 2. Switch to your gitlab_ci user
  9. ```
  10. sudo su gitlab_ci
  11. cd /home/gitlab_ci/gitlab-ci
  12. ```
  13. ### 3. Get latest code
  14. ```
  15. git fetch
  16. git checkout 7-8-stable
  17. ```
  18. #### Redis config
  19. If you have `config/resque.yml` file - please update it with recent `config/resque.yml.example`
  20. ### 4. Install libs, migrations etc
  21. ```
  22. # For MySQL users
  23. bundle install --without postgres development test --deployment
  24. # For Postgres users
  25. bundle install --without mysql development test --deployment
  26. # Run migrations
  27. bundle exec rake db:migrate RAILS_ENV=production
  28. ```
  29. ### 5. Update config
  30. GitLab CI 5.4 and above make use of the OAuth2 protocol for authentication with GitLab. This means that after updating GitLab (CI),
  31. you need to create an OAuth2 application in GitLab admin area, which gives you the APP_ID and APP_SECRET.
  32. For callback URL use: `http://ci.example.com/user_sessions/callback` if you use http, or `https://ci.example.com/user_sessions/callback` if you use https.
  33. You will have to add APP_ID and APP_SECRET to the GitLab CI config, as such:
  34. ```
  35. production:
  36. gitlab_server:
  37. url: 'http://gitlab.example.com'
  38. app_id: XXXXXX
  39. app_secret: XXXXXX
  40. ```
  41. ### 6. Start web application
  42. sudo service gitlab_ci start