Method: Gitlab::QA::Release#login_params

Defined in:
lib/gitlab/qa/release.rb

#login_paramsObject



138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
# File 'lib/gitlab/qa/release.rb', line 138

def 
  return if Runtime::Env.skip_pull?

  if dev_gitlab_org?
    Runtime::Env.require_qa_dev_access_token!

    {
      username: Runtime::Env.gitlab_dev_username,
      password: Runtime::Env.dev_access_token_variable,
      registry: DEV_REGISTRY
    }
  elsif omnibus_mirror?
    username, password = if Runtime::Env.ci_job_token && Runtime::Env.ci_pipeline_source == 'pipeline'
                           ['gitlab-ci-token', Runtime::Env.ci_job_token]
                         elsif Runtime::Env.qa_container_registry_access_token
                           [Runtime::Env.gitlab_username, Runtime::Env.qa_container_registry_access_token]
                         else
                           Runtime::Env.require_qa_access_token!

                           [Runtime::Env.gitlab_username, Runtime::Env.qa_access_token]
                         end
    {
      username: username,
      password: password,
      registry: COM_REGISTRY
    }
  end
end