cli: add name to master subs
Deploy bin / deploy (push) Successful in 1s
Deploy, build and restart MASTER / deploy (push) Successful in 2s
Deploy agebd python package / deploy (push) Successful in 5s

This commit is contained in:
Benjamin Labrecque
2026-07-07 14:29:45 +02:00
parent 5525e73d89
commit 6defd0511e
2 changed files with 15 additions and 2 deletions
+14 -2
View File
@@ -11,6 +11,7 @@ def git_push_changes(
service_dir_rel_path: str,
registry_file_rel_path: str,
master_hla_names_rel_path: str,
master_ioc_subs_rel_path: str,
commit_msg: str,
):
"""
@@ -18,9 +19,20 @@ def git_push_changes(
"""
try:
logger.info(
f"Staging files inside: {service_dir_rel_path}, {registry_file_rel_path}, {master_hla_names_rel_path}..."
f"Staging files inside: \
{service_dir_rel_path}, \
{registry_file_rel_path}, \
{master_hla_names_rel_path}, \
{master_ioc_subs_rel_path}..."
)
repo.index.add(
[
service_dir_rel_path,
registry_file_rel_path,
master_hla_names_rel_path,
master_ioc_subs_rel_path,
]
)
repo.index.add([service_dir_rel_path, registry_file_rel_path, master_hla_names_rel_path])
# Check if there are changes to avoid empty commit crashes
if not repo.is_dirty(index=True, working_tree=False):
+1
View File
@@ -82,6 +82,7 @@ class ServiceCreator:
registry_file_rel_path="config/services_registry.yml",
# TODO: maybe assert/get correct master service dirname from registry
master_hla_names_rel_path="services/000-master/current/app/config/hla_names.yml",
master_ioc_subs_rel_path="services/000-master/current/ioc/AGEBD-CPCL-MASTER_main.subs",
commit_msg=f"feature: add new service {service.name_lower}",
)
switch_branch(repo, original_branch)