libera_utils.aws.ecr_upload.push_image_to_ecr#
- libera_utils.aws.ecr_upload.push_image_to_ecr(image_name: str, image_tag: str, algorithm_name: str | ProcessingStepIdentifier, region_name: str = 'us-west-2', verbose: bool = False) None #
Programmatically upload a docker image for a science algorithm to an ECR. ECR name is determined based on the algorithm name.
- Parameters:
image_name (str) – Name of the image
image_tag (str) – Tag of the image (often latest)
algorithm_name (Union[str, constants.ProcessingStepIdentifier]) – Processing step ID string or object. Used to infer the ECR repository name.
region_name (str) – AWS region. Used to infer the ECR name.
verbose (bool) – Enable debug logging
- Return type:
None