BigW Consortium Gitlab

downtime_check.rake 318 Bytes
Newer Older
1 2
desc 'Checks if migrations in a branch require downtime'
task downtime_check: :environment do
3 4
  if defined?(Gitlab::License)
    repo = 'gitlab-ee'
5
  else
6
    repo = 'gitlab-ce'
7 8
  end

9 10 11
  `git fetch https://gitlab.com/gitlab-org/#{repo}.git --depth 1`

  Rake::Task['gitlab:db:downtime_check'].invoke('FETCH_HEAD')
12
end