Skip to content

Commit

Permalink
working
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasht86 committed Jul 3, 2024
1 parent c3166dc commit cecf61c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/deploy_to_prod.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__":
Expand Down

0 comments on commit cecf61c

Please sign in to comment.