From cecf61cf90ee7fb2a3af40da9efc9864d4f6f094 Mon Sep 17 00:00:00 2001 From: thomasht86 Date: Wed, 3 Jul 2024 12:30:22 +0200 Subject: [PATCH] working --- .github/workflows/deploy_to_prod.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy_to_prod.py b/.github/workflows/deploy_to_prod.py index 2a412878..90ce81d5 100644 --- a/.github/workflows/deploy_to_prod.py +++ b/.github/workflows/deploy_to_prod.py @@ -15,8 +15,14 @@ def deploy_prod( key_content=api_key, application_root=application_root, ) - build_no = vespa_cloud.deploy_to_prod(application_root, source_url=source_url) - vespa_cloud.wait_for_prod_deployment(build_no, max_wait=max_wait) + build_no = vespa_cloud.deploy_to_prod( + instance="default", application_root=application_root, source_url=source_url + ) + success = vespa_cloud.wait_for_prod_deployment(build_no, max_wait=max_wait) + if not success: + raise ValueError( + f"Deployment failed to complete within {max_wait} seconds. Please check the Vespa Cloud console for more information." + ) if __name__ == "__main__":