debian-mirror-gitlab/lib/tasks/gitlab/container_registry.rake

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
563 B
Ruby
Raw Normal View History

2021-03-11 19:13:27 +05:30
# frozen_string_literal: true
2020-06-23 00:09:42 +05:30
namespace :gitlab do
namespace :container_registry do
desc "GitLab | Container Registry | Configure"
task configure: :gitlab_environment do
configure
end
def configure
registry_config = Gitlab.config.registry
unless registry_config.enabled && registry_config.api_url.presence
puts "Registry is not enabled or registry api url is not present.".color(:yellow)
return
end
warn_user_is_not_gitlab
2020-07-28 23:09:34 +05:30
UpdateContainerRegistryInfoService.new.execute
2020-06-23 00:09:42 +05:30
end
end
end