code: def conductorcmd_push(engine_name, project_name, services, **kwargs):
      
      username = kwargs.pop('username')
      password = kwargs.pop('password')
      email = kwargs.pop('email')
      url = kwargs.pop('url')
      namespace = kwargs.pop('namespace')
      tag = kwargs.pop('tag')
      config_path = kwargs.pop('config_path')
      repository_prefix =kwargs.pop('repository_prefix')
  
      engine = load_engine(['PUSH', 'LOGIN'], engine_name, project_name, services)
      logger.info(u'Engine integration loaded. Preparing push.',
                  engine=engine.display_name)
  
      # Verify that we can authenticate with the registry
      username, password = engine.login(username, password, email, url, config_path)
  
      # Push each image that has been built using Ansible roles
      for name, service in iteritems(services):
          if service.get('containers'):
              for c in service['containers']:
                  if 'roles' in c:
                      cname = '%s-%s' % (name, c['container_name'])
                      image_id = engine.get_latest_image_id_for_service(cname)
                      engine.push(image_id, cname, url=url, tag=tag, namespace=namespace, username=username,
                                  password=password, repository_prefix=repository_prefix)
          elif 'roles' in service:
              # if the service has roles, it's an image we should push
              image_id = engine.get_latest_image_id_for_service(name)
              engine.push(image_id, name, url=url, tag=tag, namespace=namespace, username=username,
                          password=password, repository_prefix=repository_prefix)
docs: Push images to a registry