Commit 098c1982 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Disable CI for time of migration

parent 500e277a
......@@ -10,6 +10,10 @@ namespace :ci do
puts ''
end
# disable CI for time of migration
enable_ci(false)
# unpack archives
migrate = Ci::Migrate::Manager.new
migrate.unpack
......@@ -18,6 +22,9 @@ namespace :ci do
Rake::Task['ci:migrate:tags'].invoke
Rake::Task['ci:migrate:services'].invoke
# enable CI for time of migration
enable_ci(true)
migrate.cleanup
end
......@@ -71,4 +78,10 @@ namespace :ci do
$progress.puts 'done'.green
end
end
def enable_ci(enabled)
settings = ApplicationSetting.current || ApplicationSetting.create_from_defaults
settings.ci_enabled = enabled
settings.save!
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment