BigW Consortium Gitlab

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

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