|
61 | 61 | 'nimbus-eth2' |
62 | 62 | ] |
63 | 63 |
|
| 64 | +# Clients that need to have xatu sidecar builds created automatically |
| 65 | +SIDECAR_VARIANTS = [ |
| 66 | + 'lighthouse' |
| 67 | +] |
| 68 | + |
64 | 69 | def generate_config(): |
65 | 70 | # Read the simplified branches configuration |
66 | 71 | with open('branches.yaml', 'r') as f: |
@@ -102,6 +107,14 @@ def generate_config(): |
102 | 107 | elif branch_spec == 'unstable': |
103 | 108 | process_branch(client_name, default_repo, branch_spec, "xatu-sentry-unstable", config_list) |
104 | 109 |
|
| 110 | + # Auto-generate xatu sidecar builds if needed |
| 111 | + if client_name in SIDECAR_VARIANTS: |
| 112 | + if branch_spec == 'unstable': |
| 113 | + process_branch(client_name, default_repo, branch_spec, "xatu-sidecar-unstable", config_list) |
| 114 | + elif 'devnet' in branch_spec: |
| 115 | + # For devnet branches, append -xatu-sidecar to the safe branch name |
| 116 | + process_branch(client_name, default_repo, branch_spec, f"{safe_branch_name}-xatu-sidecar", config_list) |
| 117 | + |
105 | 118 | # Process alternate repositories if they exist |
106 | 119 | if 'alt_repos' in client_config: |
107 | 120 | for alt_repo, branches in client_config['alt_repos'].items(): |
@@ -209,6 +222,8 @@ def get_build_script(client_name, branch, target_tag=None): |
209 | 222 | return f"./{client_name}/xatu-sentry.sh" |
210 | 223 | elif client_name == 'nimbus-eth2' and target_tag and 'xatu-sentry' in target_tag: |
211 | 224 | return f"./{client_name}/xatu-sentry.sh" |
| 225 | + elif client_name == 'lighthouse' and target_tag and 'xatu-sidecar' in target_tag: |
| 226 | + return f"./{client_name}/xatu-sidecar.sh" |
212 | 227 | elif client_name == 'besu': |
213 | 228 | return "./besu/build.sh" |
214 | 229 | elif client_name == 'lodestar': |
|
0 commit comments