Welcome to mirror list, hosted at ThFree Co, Russian Federation.

container_registry.rake « gitlab « tasks « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cd18c873a5ac15f99823d96cf5c53be80eff5ceb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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

      UpdateContainerRegistryInfoService.new.execute
    end
  end
end