def build_images()

in src/main.py [0:0]


def build_images(args):
    target_version = get_semver(args.target_patch_version)
    image_ids, image_versions = _build_local_images(target_version, args.target_ecr_repo, args.force, args.skip_tests)
    generate_release_notes(target_version)

    # 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)

    if not args.skip_tests:
        print(f"Will now run tests against: {image_ids}")
        _test_local_images(image_ids, args.target_patch_version)
    else:
        print("Will skip tests.")