debian-mirror-gitlab/lib/gitlab/ci/build/credentials/registry/dependency_proxy.rb

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

22 lines
391 B
Ruby
Raw Normal View History

2021-03-11 19:13:27 +05:30
# frozen_string_literal: true
module Gitlab
module Ci
module Build
module Credentials
module Registry
class DependencyProxy < GitlabRegistry
def url
2021-04-17 20:07:23 +05:30
Gitlab.host_with_port
2021-03-11 19:13:27 +05:30
end
def valid?
Gitlab.config.dependency_proxy.enabled
end
end
end
end
end
end
end