in sagemaker_image_builder/main.py [0:0]
def _push_images_upstream(image_versions_to_push: list[dict[str, str]], region: str):
print(f"Will now push the images to ECR: {image_versions_to_push}")
for i in image_versions_to_push:
username, password = _get_ecr_credentials(region, i["repository"])
_docker_client.images.push(
repository=i["repository"], tag=i["tag"], auth_config={"username": username, "password": password}
)
print(f"Successfully pushed these images to ECR: {image_versions_to_push}")