Exemplo n.º 1
0
def login_private():
    host = environment.get_registry_host()
    user = environment.get_registry_user()
    pwd = environment.get_registry_password()
    retval = process.run_with_output(f'docker login -u {user} -p {pwd} {host}',
                                     False)
    return retval
Exemplo n.º 2
0
 def create_registry_url(self, data):
     registry_host = environment.get_registry_host()
     image_name = data[pipeline_data.IMAGE_NAME]
     if environment.get_push_azure():
         return 'https://{}/acr/v1/{}/_tags'.format(registry_host,
                                                    image_name)
     else:
         return 'https://{}/v2/{}/tags/list'.format(registry_host,
                                                    image_name)
Exemplo n.º 3
0
 def create_registry_url(self, data):
     registry_host = environment.get_registry_host()
     image_name = data[pipeline_data.IMAGE_NAME]
     return 'https://{}/v2/{}/tags/list'.format(registry_host, image_name)
Exemplo n.º 4
0
def prepend_registry(image):
    return '{}/{}'.format(environment.get_registry_host(), image)