From 4129b8ea73d8b8d9ada1c7a0c37a8e5b3422c46c Mon Sep 17 00:00:00 2001 From: James Greenhill Date: Mon, 25 Mar 2024 16:36:49 -0700 Subject: [PATCH] test throwing ci off --- bin/hobby-ci.py | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/bin/hobby-ci.py b/bin/hobby-ci.py index 91e85578352fd..a8a13f2e52ee1 100644 --- a/bin/hobby-ci.py +++ b/bin/hobby-ci.py @@ -223,12 +223,19 @@ def main(): if len(sys.argv) < 3: print("Please provide the branch name to test") exit(1) - print("Testing the deployment") + branch = sys.argv[2] + name = os.environ.get("HOBBY_NAME") + record_id = os.environ.get("HOBBY_DNS_RECORD_ID") + droplet_id = os.environ.get("HOBBY_DROPLET_ID") + print(f"Testing the deployment for {name} on branch {branch}") + print(f"Record ID: {record_id}") + print(f"Droplet ID: {droplet_id}") + ht = HobbyTester( - branch=sys.argv[2], - name=os.environ.get("HOBBY_NAME"), - record_id=os.environ.get("HOBBY_DNS_RECORD_ID"), - droplet_id=os.environ.get("HOBBY_DROPLET_ID"), + branch=branch, + name=name, + record_id=record_id, + droplet_id=droplet_id, ) health_success = ht.test_deployment() if health_success: