in sagemaker_image_builder/main.py [0:0]
def build_images(args):
with open(args.image_config_file) as jsonfile:
image_config = json.load(jsonfile)
target_version = get_semver(args.target_patch_version)
image_ids, image_versions = _build_local_images(target_version, args.target_ecr_repo, image_config, args.force)
generate_release_notes(target_version, image_config)
# Upload to ECR before running tests so that only the exact image which we tested goes to public
# TODO: Move after tests are stabilized
if args.target_ecr_repo is not None:
_push_images_upstream(image_versions, args.region)