last tidying up
This commit is contained in:
10
build.py
10
build.py
@@ -170,8 +170,16 @@ def build_managed(output_dir: Path, cfg_name: str, config: dict):
|
|||||||
if copy_repo(source, target):
|
if copy_repo(source, target):
|
||||||
log.info(f" {repo_name}/")
|
log.info(f" {repo_name}/")
|
||||||
|
|
||||||
# Copy ctrl from cfg/<room>/ctrl/
|
|
||||||
room_cfg = SPR_ROOT / "cfg" / cfg_name
|
room_cfg = SPR_ROOT / "cfg" / cfg_name
|
||||||
|
|
||||||
|
# Docker files from room root -> managed root
|
||||||
|
for item in room_cfg.iterdir():
|
||||||
|
if item.is_file() and (
|
||||||
|
item.name.startswith("Dockerfile") or item.name.startswith("docker-compose")
|
||||||
|
):
|
||||||
|
copy_path(item, managed_dir / item.name)
|
||||||
|
|
||||||
|
# Scripts from ctrl/ -> managed/ctrl/
|
||||||
room_ctrl = room_cfg / "ctrl"
|
room_ctrl = room_cfg / "ctrl"
|
||||||
if room_ctrl.exists():
|
if room_ctrl.exists():
|
||||||
ctrl_dir = managed_dir / "ctrl"
|
ctrl_dir = managed_dir / "ctrl"
|
||||||
|
|||||||
Reference in New Issue
Block a user