Skip to content

Commit 52e1ab0

Browse files
authored
allways use gcp-runner- as instance name prefix
1 parent d3b0e5e commit 52e1ab0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/clients/gcloud_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,10 @@ def create_runner_instance(self, registration_token, repo_url, template_name, in
7676
"Skipping instance creation.")
7777
return None
7878

79+
# Name must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen
7980
instance_uuid = uuid.uuid4().hex[:16]
8081
if instance_template_resource.name.startswith("dependabot"):
81-
instance_name = f"dependabot-{instance_uuid}"
82+
instance_name = f"gcp-runner-dependabot-{instance_uuid}"
8283
else:
8384
instance_name = f"gcp-runner-{instance_uuid}"
8485

0 commit comments

Comments
 (0)